xfs: evict CoW fork extents when performing finsert/fcollapse
authorDarrick J. Wong <[email protected]>
Mon, 18 Sep 2017 16:41:17 +0000 (09:41 -0700)
committerDarrick J. Wong <[email protected]>
Tue, 26 Sep 2017 01:22:30 +0000 (18:22 -0700)
commit3af423b03435c81036fa710623d3ae92fbe346a3
treef2041ddc430fbd5a473b21314c9930237fde6fb9
parentcc6f77710a6de6210f9feda7cd53e2f5ee7a7e69
xfs: evict CoW fork extents when performing finsert/fcollapse

When we perform an finsert/fcollapse operation, cancel all the CoW
extents for the affected file offset range so that they don't end up
pointing to the wrong blocks.

Reported-by: Amir Goldstein <[email protected]>
Reviewed-by: Carlos Maiolino <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Darrick J. Wong <[email protected]>
fs/xfs/xfs_bmap_util.c