Btrfs: fix wrong comment in can_overcommit()
authorMiao Xie <miaox@cn.fujitsu.com>
Tue, 16 Oct 2012 11:32:18 +0000 (11:32 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Tue, 11 Dec 2012 18:31:30 +0000 (13:31 -0500)
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>
fs/btrfs/extent-tree.c

index 7563db782abf6e5f896442565fed4aa8dc0db8aa..2cfcce290aba4bea11178e0c1c03243e2df3ee7b 100644 (file)
@@ -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;