diff options
author | Miao Xie <miaox@cn.fujitsu.com> | 2013-11-04 23:13:21 +0800 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2013-11-11 22:13:15 -0500 |
commit | 38c135af8e22baf2ef3ebf9b213e398997a90946 (patch) | |
tree | 432151f7afaf974b60a7f0e86e27e6e8987345d0 /fs/btrfs/extent-tree.c | |
parent | d3ee29e39653455b7d799f77872d7df8c4060613 (diff) | |
download | linux-38c135af8e22baf2ef3ebf9b213e398997a90946.tar.gz |
Btrfs: wait for the ordered extent only when we want
Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'fs/btrfs/extent-tree.c')
-rw-r--r-- | fs/btrfs/extent-tree.c | 3 |
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, if (delalloc_bytes == 0) { if (trans) return; - btrfs_wait_all_ordered_extents(root->fs_info); + if (wait_ordered) + btrfs_wait_all_ordered_extents(root->fs_info); return; } |