Btrfs: Fix balance_level to free the middle block if there is room in the left one
[linux-2.6-block.git] / fs / btrfs / extent-tree.c
index cc0d7f30c36b7be2b3d3f3796bae41d7b7f92a1d..c49592c5127afddff9e29aab00b9e87e9623c850 100644 (file)
@@ -306,13 +306,13 @@ struct btrfs_block_group_cache *btrfs_find_block_group(struct btrfs_root *root,
        int bit;
        int ret;
        int full_search = 0;
-       int factor = 8;
+       int factor = 10;
 
        block_group_cache = &info->block_group_cache;
        total_fs_bytes = btrfs_super_total_bytes(&root->fs_info->super_copy);
 
        if (!owner)
-               factor = 8;
+               factor = 10;
 
        bit = block_group_state_bits(data);