aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs')
-rw-r--r--fs/btrfs/extent-tree.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
index 7563db782abf..2cfcce290aba 100644
--- a/fs/btrfs/extent-tree.c
+++ b/fs/btrfs/extent-tree.c
@@ -3668,9 +3668,9 @@ static int can_overcommit(struct btrfs_root *root,
3668 avail >>= 1; 3668 avail >>= 1;
3669 3669
3670 /* 3670 /*
3671 * If we aren't flushing don't let us overcommit too much, say 3671 * If we aren't flushing all things, let us overcommit up to
3672 * 1/8th of the space. If we can flush, let it overcommit up to 3672 * 1/2th of the space. If we can flush, don't let us overcommit
3673 * 1/2 of the space. 3673 * too much, let it overcommit up to 1/8 of the space.
3674 */ 3674 */
3675 if (flush) 3675 if (flush)
3676 avail >>= 3; 3676 avail >>= 3;