mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 17:30:02 +00:00
Btrfs: fix wrong comment in can_overcommit()
The comment is not coincident with the code. Fix it. Signed-off-by: Miao Xie <miaox@cn.fujitsu.com> Signed-off-by: Chris Mason <chris.mason@fusionio.com>
This commit is contained in:
parent
3fed40cc97
commit
561c294d4c
1 changed files with 3 additions and 3 deletions
|
@ -3668,9 +3668,9 @@ static int can_overcommit(struct btrfs_root *root,
|
||||||
avail >>= 1;
|
avail >>= 1;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If we aren't flushing don't let us overcommit too much, say
|
* If we aren't flushing all things, let us overcommit up to
|
||||||
* 1/8th of the space. If we can flush, let it overcommit up to
|
* 1/2th of the space. If we can flush, don't let us overcommit
|
||||||
* 1/2 of the space.
|
* too much, let it overcommit up to 1/8 of the space.
|
||||||
*/
|
*/
|
||||||
if (flush)
|
if (flush)
|
||||||
avail >>= 3;
|
avail >>= 3;
|
||||||
|
|
Loading…
Reference in a new issue