aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.c
diff options
context:
space:
mode:
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;