xfs: adjust refcount when unmapping file blocks
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 3 Oct 2016 16:11:23 +0000 (09:11 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 3 Oct 2016 16:11:23 +0000 (09:11 -0700)
commit62aab20f08758b1b171a73a54e0c72dd12beb980
treede89fe822091706cb1da1fbb3166a3b976b8d348
parent33ba6129208475ec3aeffe6e9dad9f9afe022405
xfs: adjust refcount when unmapping file blocks

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>
fs/xfs/libxfs/xfs_bmap.c