summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ref-cache.c
diff options
context:
space:
mode:
authorJosef Bacik <josef@redhat.com>2011-05-13 11:07:12 -0400
committerJosef Bacik <josef@redhat.com>2011-05-23 13:03:15 -0400
commitcca1c81f43e26ab60c0d1090fb90992358d69bdf (patch)
tree8c445c012b9b0184eed9b7f52b35c0d0b85b0e0b /fs/btrfs/ref-cache.c
parent026fd317828500524cdc7e5ff9e8e7923abb2868 (diff)
downloadlinux-stable-cca1c81f43e26ab60c0d1090fb90992358d69bdf.tar.gz
linux-stable-cca1c81f43e26ab60c0d1090fb90992358d69bdf.tar.bz2
linux-stable-cca1c81f43e26ab60c0d1090fb90992358d69bdf.zip
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: Josef Bacik <josef@redhat.com>
Diffstat (limited to 'fs/btrfs/ref-cache.c')
0 files changed, 0 insertions, 0 deletions