aboutsummaryrefslogtreecommitdiffstats
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 0c6ed17ac1bc..e1557e573d74 100644
--- a/fs/btrfs/ctree.c
+++ b/fs/btrfs/ctree.c
@@ -217,11 +217,9 @@ int btrfs_realloc_node(struct btrfs_trans_handle *trans,
217 root->fs_info->generation); 217 root->fs_info->generation);
218 WARN_ON(1); 218 WARN_ON(1);
219 } 219 }
220 if (btrfs_buffer_defrag_done(parent)) 220 parent_level = btrfs_header_level(parent);
221 return 0;
222 221
223 parent_nritems = btrfs_header_nritems(parent); 222 parent_nritems = btrfs_header_nritems(parent);
224 parent_level = btrfs_header_level(parent);
225 blocksize = btrfs_level_size(root, parent_level - 1); 223 blocksize = btrfs_level_size(root, parent_level - 1);
226 224
227 start_slot = 0; 225 start_slot = 0;