From: Miao Xie Date: Mon, 4 Nov 2013 15:13:21 +0000 (+0800) Subject: Btrfs: wait for the ordered extent only when we want X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=38c135af8e22baf2ef3ebf9b213e398997a90946;p=openwrt%2Fstaging%2Fblogic.git Btrfs: wait for the ordered extent only when we want Signed-off-by: Miao Xie Signed-off-by: Josef Bacik Signed-off-by: Chris Mason --- 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; }