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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/tree-defrag.c b/fs/btrfs/tree-defrag.c
index 155961c7b4d5..fab851d85383 100644
--- a/fs/btrfs/tree-defrag.c
+++ b/fs/btrfs/tree-defrag.c
@@ -181,6 +181,8 @@ int btrfs_defrag_leaves(struct btrfs_trans_handle *trans,
181 if (root->fs_info->extent_root == root) 181 if (root->fs_info->extent_root == root)
182 is_extent = 1; 182 is_extent = 1;
183 183
184 goto out;
185
184 if (root->ref_cows == 0 && !is_extent) 186 if (root->ref_cows == 0 && !is_extent)
185 goto out; 187 goto out;
186 188