summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent-tree.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-04-24 14:42:46 -0400
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:04:02 -0400
commitbce4eae9864e6b6ebde5d7f05576ff0a6c3724d0 (patch)
tree87e90c0e7b7a75b9df5c062504a86c0424cade68 /fs/btrfs/extent-tree.c
parent971a1f6648bfafd4239234f1ffb9c26e907c2744 (diff)
downloadop-kernel-dev-bce4eae9864e6b6ebde5d7f05576ff0a6c3724d0.zip
op-kernel-dev-bce4eae9864e6b6ebde5d7f05576ff0a6c3724d0.tar.gz
Btrfs: Fix balance_level to free the middle block if there is room in the left one
balance level starts by trying to empty the middle block, and then pushes from the right to the middle. This might empty the right block and leave a small number of pointers in the middle. Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/extent-tree.c')
-rw-r--r--fs/btrfs/extent-tree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
index cc0d7f3..c49592c 100644
--- a/fs/btrfs/extent-tree.c
+++ b/fs/btrfs/extent-tree.c
@@ -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);
OpenPOWER on IntegriCloud