• Darrick J. Wong's avatar
    xfs: check overlapping rmap btree records · 29ab991b
    Darrick J. Wong authored
    The rmap btree scrubber doesn't contain sufficient checking for records
    that cannot overlap but do anyway.  For the other btrees, this is
    enforced by the inorder checks in xchk_btree_rec, but the rmap btree is
    special because it allows overlapping records to handle shared data
    extents.
    
    Therefore, enhance the rmap btree record check function to compare each
    record against the previous one so that we can detect overlapping rmap
    records for space allocations that do not allow sharing.
    Signed-off-by: default avatarDarrick J. Wong <djwong@kernel.org>
    Reviewed-by: default avatarDave Chinner <dchinner@redhat.com>
    29ab991b
rmap.c 7.87 KB