Thread (6 messages) flat view 6 messages, 3 authors, 2021-03-05

Re: [PATCH] block_dump: don't put the last refcount when marking inode dirty

From: Christoph Hellwig <hch@infradead.org>
Date: 2021-03-05 13:26:05
Also in: linux-fsdevel

On Mon, Mar 01, 2021 at 12:21:02PM +0100, Jan Kara wrote:
Hrm, ok. Honestly, I wanted to just delete that code for a long time. IMO
tracepoints (and we have one in __mark_inode_dirty) are much more useful
for tracing anyway. This code exists only because it was there much before
tracepoints existed... Do you have a strong reason why are you using
block_dump instead of tracepoint trace_writeback_mark_inode_dirty() for
your monitoring?
Let me play devils advocate here, the downside of the writeback
tracepoints is that they only trace the inode number and not a file name
(component).  Which is also the reason they avoid this problem.

That being said block_dump is a horrible hack, and trace points are the
proper replacement.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help