diff options
Diffstat (limited to 'fs/btrfs/ordered-data.c')
-rw-r--r-- | fs/btrfs/ordered-data.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/ordered-data.c b/fs/btrfs/ordered-data.c index 81369827e514..b52b2c4010c2 100644 --- a/fs/btrfs/ordered-data.c +++ b/fs/btrfs/ordered-data.c | |||
@@ -671,7 +671,7 @@ int btrfs_run_ordered_operations(struct btrfs_trans_handle *trans, | |||
671 | INIT_LIST_HEAD(&splice); | 671 | INIT_LIST_HEAD(&splice); |
672 | INIT_LIST_HEAD(&works); | 672 | INIT_LIST_HEAD(&works); |
673 | 673 | ||
674 | mutex_lock(&root->fs_info->ordered_operations_mutex); | 674 | mutex_lock(&root->fs_info->ordered_extent_flush_mutex); |
675 | spin_lock(&root->fs_info->ordered_root_lock); | 675 | spin_lock(&root->fs_info->ordered_root_lock); |
676 | list_splice_init(&cur_trans->ordered_operations, &splice); | 676 | list_splice_init(&cur_trans->ordered_operations, &splice); |
677 | while (!list_empty(&splice)) { | 677 | while (!list_empty(&splice)) { |
@@ -718,7 +718,7 @@ out: | |||
718 | list_del_init(&work->list); | 718 | list_del_init(&work->list); |
719 | btrfs_wait_and_free_delalloc_work(work); | 719 | btrfs_wait_and_free_delalloc_work(work); |
720 | } | 720 | } |
721 | mutex_unlock(&root->fs_info->ordered_operations_mutex); | 721 | mutex_unlock(&root->fs_info->ordered_extent_flush_mutex); |
722 | return ret; | 722 | return ret; |
723 | } | 723 | } |
724 | 724 | ||