• Darrick J. Wong's avatar
    xfs: detect unwritten bit set in rmapbt node block keys · 38384569
    Darrick J. Wong authored
    In the last patch, we changed the rmapbt code to remove the UNWRITTEN
    bit when creating an rmapbt key from an rmapbt record, and we changed
    the rmapbt key comparison code to start considering the ATTR and BMBT
    flags during lookup.  This brought the behavior of the rmapbt
    implementation in line with its specification.
    
    However, there may exist filesystems that have the unwritten bit still
    set in the rmapbt keys.  We should detect these situations and flag the
    rmapbt as one that would benefit from optimization.  Eventually, online
    repair will be able to do something in response to this.
    Signed-off-by: default avatarDarrick J. Wong <djwong@kernel.org>
    Reviewed-by: default avatarDave Chinner <dchinner@redhat.com>
    38384569
btree.c 19.4 KB