aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/tree-defrag.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/tree-defrag.c')
-rw-r--r--fs/btrfs/tree-defrag.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/fs/btrfs/tree-defrag.c b/fs/btrfs/tree-defrag.c
index 3feac2f28628..d23216aa4ab5 100644
--- a/fs/btrfs/tree-defrag.c
+++ b/fs/btrfs/tree-defrag.c
@@ -116,10 +116,10 @@ static int defrag_walk_down(struct btrfs_trans_handle *trans,
116 } 116 }
117 WARN_ON(*level < 0); 117 WARN_ON(*level < 0);
118 WARN_ON(*level >= BTRFS_MAX_LEVEL); 118 WARN_ON(*level >= BTRFS_MAX_LEVEL);
119#if 0 119
120 clear_buffer_defrag(path->nodes[*level]); 120 btrfs_clear_buffer_defrag(path->nodes[*level]);
121 clear_buffer_defrag_done(path->nodes[*level]); 121 btrfs_clear_buffer_defrag_done(path->nodes[*level]);
122#endif 122
123 free_extent_buffer(path->nodes[*level]); 123 free_extent_buffer(path->nodes[*level]);
124 path->nodes[*level] = NULL; 124 path->nodes[*level] = NULL;
125 *level += 1; 125 *level += 1;
@@ -148,10 +148,8 @@ static int defrag_walk_up(struct btrfs_trans_handle *trans,
148 root->defrag_level = i; 148 root->defrag_level = i;
149 return 0; 149 return 0;
150 } else { 150 } else {
151 /* 151 btrfs_clear_buffer_defrag(path->nodes[*level]);
152 clear_buffer_defrag(path->nodes[*level]); 152 btrfs_clear_buffer_defrag_done(path->nodes[*level]);
153 clear_buffer_defrag_done(path->nodes[*level]);
154 */
155 free_extent_buffer(path->nodes[*level]); 153 free_extent_buffer(path->nodes[*level]);
156 path->nodes[*level] = NULL; 154 path->nodes[*level] = NULL;
157 *level = i + 1; 155 *level = i + 1;