]> git.proxmox.com Git - mirror_ubuntu-artful-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)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Thu, 16 Nov 2017 13:23:21 +0000 (11:23 -0200)
commit6dd72e6077ce8e174d5bb2b6d1df3a51f2eba03c
treef18feb07d6c44820467f4a5f8fe1a31094a68ef7
parentee07da3e815326f9fdae394df43f7ee44e5853ad
xfs: always swap the cow forks when swapping extents

BugLink: http://bugs.launchpad.net/bugs/1731951
commit 52bfcdd7adbc26639bc7b2356ab9a3f5dad68ad6 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
fs/xfs/xfs_bmap_util.c