• Darrick J. Wong's avatar
    xfs: convert xfs_ialloc_has_inodes_at_extent to return keyfill scan results · efc0845f
    Darrick J. Wong authored
    Convert the xfs_ialloc_has_inodes_at_extent function to return keyfill
    scan results because for a given range of inode numbers, we might have
    no indexed inodes at all; the entire region might be allocated ondisk
    inodes; or there might be a mix of the two.
    
    Unfortunately, sparse inodes adds to the complexity, because each inode
    record can have holes, which means that we cannot use the generic btree
    _scan_keyfill function because we must look for holes in individual
    records to decide the result.  On the plus side, online fsck can now
    detect sub-chunk discrepancies in the inobt.
    Signed-off-by: default avatarDarrick J. Wong <djwong@kernel.org>
    Reviewed-by: default avatarDave Chinner <dchinner@redhat.com>
    efc0845f
ialloc.c 21.7 KB