summaryrefslogtreecommitdiffstats
path: root/fs/ext4/mballoc.c
diff options
context:
space:
mode:
authorRobin Dong <sanbai@taobao.com>2011-10-26 08:48:54 -0400
committerTheodore Ts'o <tytso@mit.edu>2011-10-26 08:48:54 -0400
commit0a10da73e1fa6fb9b45f1166011ff3b04c27c010 (patch)
treed72a254eb5a9b983e60f6c8b6b1807c0139f123f /fs/ext4/mballoc.c
parentb051d8dc4e1f011e1b0543a875f5861be5d90222 (diff)
ext4: fix a wrong comment in __mb_check_buddy()
The comment says the bit should be 0, but the after code assert the bit to be 1. This makes people confused, so fix it. Signed-off-by: Robin Dong <sanbai@taobao.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/mballoc.c')
-rw-r--r--fs/ext4/mballoc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c
index 2bb1ddc5c30..e2d8be8f28b 100644
--- a/fs/ext4/mballoc.c
+++ b/fs/ext4/mballoc.c
@@ -581,7 +581,7 @@ static int __mb_check_buddy(struct ext4_buddy *e4b, char *file,
continue;
}
- /* both bits in buddy2 must be 0 */
+ /* both bits in buddy2 must be 1 */
MB_CHECK_ASSERT(mb_test_bit(i << 1, buddy2));
MB_CHECK_ASSERT(mb_test_bit((i << 1) + 1, buddy2));