]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: implement swapext for rmap filesystems
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 25 Oct 2016 01:47:13 +0000 (12:47 +1100)
committerDave Chinner <david@fromorbit.com>
Tue, 25 Oct 2016 01:47:13 +0000 (12:47 +1100)
commit09a5b0e231157cbe727c6e38d7641c5d4edeca87
treeb2a3d89284b1ca9267f432eb75ac41b8a2e9fc10
parent2c834d2078b2341a5252dd0fe4cdd907e1b74149
xfs: implement swapext for rmap filesystems

Source kernel commit: 1f08af52e7c981e9877796a2d90b0e0f08666945

Implement swapext for filesystems that have reverse mapping.  Back in
the reflink patches, we augmented the bmap code with a 'REMAP' flag
that updates only the bmbt and doesn't touch the allocator and
implemented log redo items for those two operations.  Now we can
rewrite extent swapping as a (looong) series of remap operations.

This is far less efficient than the fork swapping method implemented
in the past, so we only switch this on for rmap.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
libxfs/xfs_trans_space.h