aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/transaction.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/transaction.c')
-rw-r--r--fs/btrfs/transaction.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c
index 67e4aca36a62..bdfe05cf26c6 100644
--- a/fs/btrfs/transaction.c
+++ b/fs/btrfs/transaction.c
@@ -353,7 +353,6 @@ int btrfs_defrag_root(struct btrfs_root *root, int cacheonly)
353 353
354 if (root->defrag_running) 354 if (root->defrag_running)
355 return 0; 355 return 0;
356
357 trans = btrfs_start_transaction(root, 1); 356 trans = btrfs_start_transaction(root, 1);
358 while (1) { 357 while (1) {
359 root->defrag_running = 1; 358 root->defrag_running = 1;
@@ -361,7 +360,6 @@ int btrfs_defrag_root(struct btrfs_root *root, int cacheonly)
361 nr = trans->blocks_used; 360 nr = trans->blocks_used;
362 btrfs_end_transaction(trans, root); 361 btrfs_end_transaction(trans, root);
363 mutex_unlock(&info->fs_mutex); 362 mutex_unlock(&info->fs_mutex);
364
365 btrfs_btree_balance_dirty(info->tree_root, nr); 363 btrfs_btree_balance_dirty(info->tree_root, nr);
366 cond_resched(); 364 cond_resched();
367 365