]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: adjust refcount when unmapping file blocks
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 25 Oct 2016 01:26:48 +0000 (12:26 +1100)
committerDave Chinner <david@fromorbit.com>
Tue, 25 Oct 2016 01:26:48 +0000 (12:26 +1100)
commitcfe32f0db83c38696cf1a820ddc93444f33ddf97
treee6f3037283e4d05cef6092e7635575cc9fab0ec4
parent23a15a6c29c827d7cbe96781fdae2d353bbb485d
xfs: adjust refcount when unmapping file blocks

Source kernel commit: 62aab20f08758b1b171a73a54e0c72dd12beb980

When we're unmapping blocks from a reflinked file, decrease the
refcount of the affected blocks and free the extents that are no
longer in use.

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