aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/btrfs/extent-tree.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
index 5e0e6bcf67b9..2564cbfdf417 100644
--- a/fs/btrfs/extent-tree.c
+++ b/fs/btrfs/extent-tree.c
@@ -4047,7 +4047,8 @@ static void shrink_delalloc(struct btrfs_root *root, u64 to_reclaim, u64 orig,
4047 if (delalloc_bytes == 0) { 4047 if (delalloc_bytes == 0) {
4048 if (trans) 4048 if (trans)
4049 return; 4049 return;
4050 btrfs_wait_all_ordered_extents(root->fs_info); 4050 if (wait_ordered)
4051 btrfs_wait_all_ordered_extents(root->fs_info);
4051 return; 4052 return;
4052 } 4053 }
4053 4054