diff options
Diffstat (limited to 'fs/btrfs/transaction.c')
-rw-r--r-- | fs/btrfs/transaction.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c index 1df67129cc3d..48b455fdaac5 100644 --- a/fs/btrfs/transaction.c +++ b/fs/btrfs/transaction.c | |||
@@ -670,7 +670,6 @@ static noinline int drop_dirty_roots(struct btrfs_root *tree_root, | |||
670 | atomic_dec(&root->fs_info->throttles); | 670 | atomic_dec(&root->fs_info->throttles); |
671 | wake_up(&root->fs_info->transaction_throttle); | 671 | wake_up(&root->fs_info->transaction_throttle); |
672 | 672 | ||
673 | mutex_lock(&root->fs_info->alloc_mutex); | ||
674 | num_bytes -= btrfs_root_used(&dirty->root->root_item); | 673 | num_bytes -= btrfs_root_used(&dirty->root->root_item); |
675 | bytes_used = btrfs_root_used(&root->root_item); | 674 | bytes_used = btrfs_root_used(&root->root_item); |
676 | if (num_bytes) { | 675 | if (num_bytes) { |
@@ -678,7 +677,6 @@ static noinline int drop_dirty_roots(struct btrfs_root *tree_root, | |||
678 | btrfs_set_root_used(&root->root_item, | 677 | btrfs_set_root_used(&root->root_item, |
679 | bytes_used - num_bytes); | 678 | bytes_used - num_bytes); |
680 | } | 679 | } |
681 | mutex_unlock(&root->fs_info->alloc_mutex); | ||
682 | 680 | ||
683 | ret = btrfs_del_root(trans, tree_root, &dirty->root->root_key); | 681 | ret = btrfs_del_root(trans, tree_root, &dirty->root->root_key); |
684 | if (ret) { | 682 | if (ret) { |