• Darrick J. Wong's avatar
    xfs: use per-AG bitmaps to reap unused AG metadata blocks during repair · 014ad537
    Darrick J. Wong authored
    The AGFL repair code uses a series of bitmaps to figure out where there
    are OWN_AG blocks that are not claimed by the free space and rmap
    btrees.  These blocks become the new AGFL, and any overflow is reaped.
    The bitmaps current track xfs_fsblock_t even though we already know the
    AG number.
    
    In the last patch, we introduced a new bitmap "type" for tracking
    xfs_agblock_t extents.  Port the reaping code and the AGFL repair to use
    this new type, which makes it very obvious what we're tracking.  This
    also eliminates a bunch of unnecessary agblock <-> fsblock conversions.
    Signed-off-by: default avatarDarrick J. Wong <djwong@kernel.org>
    Reviewed-by: default avatarDave Chinner <dchinner@redhat.com>
    014ad537
reap.c 13.3 KB