• Darrick J. Wong's avatar
    xfs: condense symbolic links after a mapping exchange operation · 33a9be2b
    Darrick J. Wong authored
    The previous commit added a new file mapping exchange flag that enables
    us to perform post-exchange processing on file2 once we're done
    exchanging the extent mappings.  Now add this ability for symlinks.
    
    This isn't used anywhere right now, but we need to have the basic ondisk
    flags in place so that a future online symlink repair feature can
    salvage the remote target in a temporary link and exchange the data fork
    mappings when ready.  If one file is in extents format and the other is
    inline, we will have to promote both to extents format to perform the
    exchange.  After the exchange, we can try to condense the fixed symlink
    down to inline format if possible.
    Signed-off-by: default avatarDarrick J. Wong <djwong@kernel.org>
    Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
    33a9be2b
xfs_exchmaps.c 31.8 KB