From: Josef Bacik Date: Fri, 13 May 2011 15:07:12 +0000 (-0400) Subject: Btrfs: don't try to allocate from a block group that doesn't have enough space X-Git-Tag: v3.0-rc2~5^2~11^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cca1c81f43e26ab60c0d1090fb90992358d69bdf;p=pandora-kernel.git 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 --- Reading git-diff-tree failed