mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-01 10:45:49 +00:00
iomap: add a tracepoint for mappings returned by map_blocks
Add a new tracepoint so we can see what mapping the filesystem returns to writeback a dirty page. Signed-off-by: Darrick J. Wong <djwong@kernel.org> Reviewed-by: Dave Chinner <dchinner@redhat.com>
This commit is contained in:
parent
3d5f3ba1ac
commit
adc9c2e5a7
@ -1360,6 +1360,7 @@ iomap_writepage_map(struct iomap_writepage_ctx *wpc,
|
|||||||
error = wpc->ops->map_blocks(wpc, inode, pos);
|
error = wpc->ops->map_blocks(wpc, inode, pos);
|
||||||
if (error)
|
if (error)
|
||||||
break;
|
break;
|
||||||
|
trace_iomap_writepage_map(inode, &wpc->iomap);
|
||||||
if (WARN_ON_ONCE(wpc->iomap.type == IOMAP_INLINE))
|
if (WARN_ON_ONCE(wpc->iomap.type == IOMAP_INLINE))
|
||||||
continue;
|
continue;
|
||||||
if (wpc->iomap.type == IOMAP_HOLE)
|
if (wpc->iomap.type == IOMAP_HOLE)
|
||||||
|
@ -148,6 +148,7 @@ DEFINE_EVENT(iomap_class, name, \
|
|||||||
TP_ARGS(inode, iomap))
|
TP_ARGS(inode, iomap))
|
||||||
DEFINE_IOMAP_EVENT(iomap_iter_dstmap);
|
DEFINE_IOMAP_EVENT(iomap_iter_dstmap);
|
||||||
DEFINE_IOMAP_EVENT(iomap_iter_srcmap);
|
DEFINE_IOMAP_EVENT(iomap_iter_srcmap);
|
||||||
|
DEFINE_IOMAP_EVENT(iomap_writepage_map);
|
||||||
|
|
||||||
TRACE_EVENT(iomap_iter,
|
TRACE_EVENT(iomap_iter,
|
||||||
TP_PROTO(struct iomap_iter *iter, const void *ops,
|
TP_PROTO(struct iomap_iter *iter, const void *ops,
|
||||||
|
Loading…
Reference in New Issue
Block a user