]> git.ipfire.org Git - thirdparty/linux.git/commit
xfs: move stat accounting to xfs_bmapi_convert_delalloc
authorChristoph Hellwig <hch@lst.de>
Fri, 15 Feb 2019 16:02:49 +0000 (08:02 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Sun, 17 Feb 2019 19:55:54 +0000 (11:55 -0800)
commit125851ac92d62b966df851c6f34147121020af2f
tree4d80c562e50a7966abecad1554213ed1d757f02f
parent491ce61e939f76399e344b0414dc5a4c08c1f0cf
xfs: move stat accounting to xfs_bmapi_convert_delalloc

This way we can actually count how many bytes got converted and how many
calls we need, unlike in the caller which doesn't have the detailed
view.

Note that this includes a slight change in behavior as the
xs_xstrat_quick is now bumped for every allocation instead of just the
one covering the requested writeback offset, which makes a lot more
sense.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Brian Foster <bfoster@redhat.com>
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/xfs_iomap.c