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

Commit 561c294d authored by Miao Xie's avatar Miao Xie Committed by Josef Bacik
Browse files

Btrfs: fix wrong comment in can_overcommit()



The comment is not coincident with the code. Fix it.

Signed-off-by: default avatarMiao Xie <miaox@cn.fujitsu.com>
Signed-off-by: default avatarChris Mason <chris.mason@fusionio.com>
parent 3fed40cc
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -3668,9 +3668,9 @@ static int can_overcommit(struct btrfs_root *root,
		avail >>= 1;

	/*
	 * If we aren't flushing don't let us overcommit too much, say
	 * 1/8th of the space.  If we can flush, let it overcommit up to
	 * 1/2 of the space.
	 * If we aren't flushing all things, let us overcommit up to
	 * 1/2th of the space. If we can flush, don't let us overcommit
	 * too much, let it overcommit up to 1/8 of the space.
	 */
	if (flush)
		avail >>= 3;