Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 38c135af authored by Miao Xie's avatar Miao Xie Committed by Chris Mason
Browse files

Btrfs: wait for the ordered extent only when we want

parent d3ee29e3
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -4047,6 +4047,7 @@ static void shrink_delalloc(struct btrfs_root *root, u64 to_reclaim, u64 orig,
	if (delalloc_bytes == 0) {
		if (trans)
			return;
		if (wait_ordered)
			btrfs_wait_all_ordered_extents(root->fs_info);
		return;
	}