Skip to content
Commit cca1c81f authored by Josef Bacik's avatar Josef Bacik
Browse files

Btrfs: don't try to allocate from a block group that doesn't have enough space



If we have a very large filesystem, we can spend a lot of time in
find_free_extent just trying to allocate from empty block groups.  So instead
check to see if the block group even has enough space for the allocation, and if
not go on to the next block group.

Signed-off-by: default avatarJosef Bacik <josef@redhat.com>
parent 026fd317
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment