]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: move stat accounting to xfs_bmapi_convert_delalloc
authorChristoph Hellwig <hch@lst.de>
Mon, 6 May 2019 22:00:29 +0000 (18:00 -0400)
committerEric Sandeen <sandeen@redhat.com>
Mon, 6 May 2019 22:00:29 +0000 (18:00 -0400)
commit44e165df965045a8dac6e4d322367a097a68671d
tree2c3a620c2e750354af8ebb07cf02702bd026fdb9
parentc784c9d257ecbfbbfe630dbc21d44421f495f38e
xfs: move stat accounting to xfs_bmapi_convert_delalloc

Source kernel commit: 125851ac92d62b966df851c6f34147121020af2f

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>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_bmap.c