]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0f705f645388aebb36e5527bb0e0106cbe4ffe25
treefc23f5f901dee20a30fdb225b7110eb1635a7ca4
parent30681fd33b6e919b44793b5b8358cc8c7b0b97f4
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