Skip to contentSkip to conversation

Btrfs: fix wrong comment in can_overcommit()

PATCH New Miao Xie 1 participant 1 message Oct 16, 2012 Btrfs file system

lore
Share & tools
lore

Miao Xie

author
#0 lore raw

PATCH 1/2 Btrfs: fix wrong comment in can_overcommit()

The comment is not coincident with the code. Fix it.

---
 fs/btrfs/extent-tree.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
fs/btrfs/extent-tree.c +3 -3
index 7563db7..2cfcce2 100644
@@ -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;
Signature · 1 line
1.7.6.5