Skip to content

Commit 561c294

Browse files
Miao XieJosef Bacik
authored andcommitted
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>
1 parent 3fed40c commit 561c294

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎fs/btrfs/extent-tree.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3668,9 +3668,9 @@ static int can_overcommit(struct btrfs_root *root,
36683668
avail >>= 1;
36693669

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

0 commit comments

Comments
 (0)