• Josef Bacik's avatar
    Btrfs: don't be as aggressive about using bitmaps · 32cb0840
    Josef Bacik authored
    We have been creating bitmaps for small extents unconditionally forever.  This
    was great when testing to make sure the bitmap stuff was working, but is
    overkill normally.  So instead of always adding small chunks of free space to
    bitmaps, only start doing it if we go past half of our extent threshold.  This
    will keeps us from creating a bitmap for just one small free extent at the front
    of the block group, and will make the allocator a little faster as a result.
    Thanks,
    Signed-off-by: default avatarJosef Bacik <josef@redhat.com>
    32cb0840
free-space-cache.c 54.9 KB