• Darrick J. Wong's avatar
    xfs: condense extended attributes after a mapping exchange operation · 497d7a26
    Darrick J. Wong authored
    Add a new file mapping exchange flag that enables us to perform
    post-exchange processing on file2 once we're done exchanging the extent
    mappings.  If we were swapping mappings between extended attribute
    forks, we want to be able to convert file2's attr fork from block to
    inline format.
    
    (This implies that all fork contents are exchanged.)
    
    This isn't used anywhere right now, but we need to have the basic ondisk
    flags in place so that a future online xattr repair feature can create
    salvaged attrs in a temporary file and exchange the attr 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 file's attr fork
    back down to inline format if possible.
    Signed-off-by: default avatarDarrick J. Wong <djwong@kernel.org>
    Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
    497d7a26
xfs_exchmaps.h 3.35 KB