]> asedeno.scripts.mit.edu Git - linux.git/commit
xfs: move pre/post-bmap tracing into xfs_iext_update_extent
authorChristoph Hellwig <hch@lst.de>
Thu, 19 Oct 2017 18:04:44 +0000 (11:04 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 26 Oct 2017 22:38:27 +0000 (15:38 -0700)
commitca5d8e5b7b9030005e38e7c43e08c0cd4eb2a78f
tree7cf8ecba27b00724437132bf32ddb43721a0aa9b
parentd138604fb1a6500064b50e75f220e6cbce785493
xfs: move pre/post-bmap tracing into xfs_iext_update_extent

xfs_iext_update_extent already has basically all the information needed
to centralize the bmap pre/post tracing.  We just need to pass inode +
bmap state instead of the inode fork pointer to get all trace annotations.

In addition to covering all the existing trace points this gives us
tracing coverage for the extent shifting operations for free.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/libxfs/xfs_bmap.c
fs/xfs/libxfs/xfs_inode_fork.c
fs/xfs/libxfs/xfs_inode_fork.h