aboutsummaryrefslogtreecommitdiff
path: root/fs/btrfs/ctree.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2007-10-15 16:19:46 -0400
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:03:56 -0400
commit0f1ebbd159baade0417f8f62f0cd6810cc950832 (patch)
tree7b973923c6ad62cd20045618819a6fad19046662 /fs/btrfs/ctree.c
parent19c00ddcc31ad4bdfb86b57085e06d6135b9b1d7 (diff)
Btrfs: Large block related defrag optimizations
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/ctree.c')
-rw-r--r--fs/btrfs/ctree.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c
index 0c6ed17ac1b..e1557e573d7 100644
--- a/fs/btrfs/ctree.c
+++ b/fs/btrfs/ctree.c
@@ -217,11 +217,9 @@ int btrfs_realloc_node(struct btrfs_trans_handle *trans,
root->fs_info->generation);
WARN_ON(1);
}
- if (btrfs_buffer_defrag_done(parent))
- return 0;
+ parent_level = btrfs_header_level(parent);
parent_nritems = btrfs_header_nritems(parent);
- parent_level = btrfs_header_level(parent);
blocksize = btrfs_level_size(root, parent_level - 1);
start_slot = 0;