summaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorAlexandre Oliva <oliva@lsd.ic.unicamp.br>2011-11-30 19:43:00 +0100
committerChris Mason <chris.mason@oracle.com>2011-11-30 19:43:00 +0100
commit425d83156ca27f74e2cc3f370138038c3c8947f8 (patch)
tree67b452d423dc64aa3896078a2f90066922bbf384 /security
parentBtrfs: start search for new cluster at the beginning (diff)
downloadlinux-425d83156ca27f74e2cc3f370138038c3c8947f8.tar.xz
linux-425d83156ca27f74e2cc3f370138038c3c8947f8.zip
Btrfs: skip block groups without enough space for a cluster
We test whether a block group has enough free space to hold the requested block, but when we're doing clustered allocation, we can save some cycles by testing whether it has enough room for the cluster upfront, otherwise we end up attempting to set up a cluster and failing. Only in the NO_EMPTY_SIZE loop do we attempt an unclustered allocation, and by then we'll have zeroed the cluster size, so this patch won't stop us from using the block group as a last resort. Signed-off-by: Alexandre Oliva <oliva@lsd.ic.unicamp.br> Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions