• Darrick J. Wong's avatar
    xfs: implement swapext for rmap filesystems · 1f08af52
    Darrick J. Wong authored
    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: default avatarDarrick J. Wong <darrick.wong@oracle.com>
    Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
    1f08af52
xfs_bmap_util.c 55.7 KB