xfs: always swap the cow forks when swapping extents
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 18 Sep 2017 16:41:18 +0000 (09:41 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 4 Oct 2017 04:27:55 +0000 (21:27 -0700)
commit52bfcdd7adbc26639bc7b2356ab9a3f5dad68ad6
treefc23f5f901dee20a30fdb225b7110eb1635a7ca4
parent5e5c943c1f257c2b3424fc3f8a7b18570152dab3
xfs: always swap the cow forks when swapping extents

Since the CoW fork exists as a secondary data structure to the data
fork, we must always swap cow forks during swapext.  We also need to
swap the extent counts and reset the cowblocks tags.

Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_bmap_util.c