• Qu Wenruo's avatar
    btrfs: separate BLOCK_GROUP_TREE compat RO flag from EXTENT_TREE_V2 · 1c56ab99
    Qu Wenruo authored
    The problem of long mount time caused by block group item search is
    already known for some time, and the solution of block group tree has
    been proposed.
    
    There is really no need to bound this feature into extent tree v2, just
    introduce compat RO flag, BLOCK_GROUP_TREE, to correctly solve the
    problem.
    
    All the code handling block group root is already in the upstream
    kernel, thus this patch really only needs to introduce the new compat RO
    flag.
    
    This patch introduces one extra artificial limitation on block group
    tree feature, that free space cache v2 and no-holes feature must be
    enabled to use this new compat RO feature.
    
    This artificial requirement is mostly to reduce the test combinations,
    and can be a guideline for future features, to mostly rely on the latest
    default features.
    Signed-off-by: default avatarQu Wenruo <wqu@suse.com>
    Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
    Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
    1c56ab99
disk-io.h 5.58 KB