]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit - libxfs/xfs_bmap.c
xfs: return work remaining at the end of a bunmapi operation
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 25 Oct 2016 01:37:28 +0000 (12:37 +1100)
committerDave Chinner <david@fromorbit.com>
Tue, 25 Oct 2016 01:37:28 +0000 (12:37 +1100)
commit3d36acda7f86af4949780046c8f0c9b438bb11df
tree0523f08a278ad049f393b4a6c55cefa5029c75cc
parentaeb88300f19d35b7e7364a1c6a16118717a1b503
xfs: return work remaining at the end of a bunmapi operation

Source kernel commit: 4453593be6c54e7581467e80f4a2757be098a3a2

Return the range of file blocks that bunmapi didn't free.  This hint
is used by CoW and reflink to figure out what part of an extent
actually got freed so that it can set up the appropriate atomic
remapping of just the freed range.

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