summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiao Xie <miaox@cn.fujitsu.com>2012-10-16 11:32:18 +0000
committerJosef Bacik <jbacik@fusionio.com>2012-12-11 13:31:30 -0500
commit561c294d4cfb30c4acfa0a243448fc55af730d87 (patch)
tree1f639ef6914316e59e926751563f84119c2638e6
parent3fed40cc97f32bebfd34a55364de9b44dcbede59 (diff)
downloadop-kernel-dev-561c294d4cfb30c4acfa0a243448fc55af730d87.zip
op-kernel-dev-561c294d4cfb30c4acfa0a243448fc55af730d87.tar.gz
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>
-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 7563db7..2cfcce2 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,
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;
OpenPOWER on IntegriCloud