]> git.baikalelectronics.ru Git - kernel.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)
commite79d3db4dac543d815f2e60320db2b92ba6f4cd7
tree7cf8ecba27b00724437132bf32ddb43721a0aa9b
parent710a568ba9f4479806d6003bf37f7fb758cdd5c2
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