diff options
author | Robin Dong <sanbai@taobao.com> | 2011-10-26 12:48:54 (GMT) |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2011-10-26 12:48:54 (GMT) |
commit | 0a10da73e1fa6fb9b45f1166011ff3b04c27c010 (patch) | |
tree | d72a254eb5a9b983e60f6c8b6b1807c0139f123f /fs | |
parent | b051d8dc4e1f011e1b0543a875f5861be5d90222 (diff) | |
download | linux-fsl-qoriq-0a10da73e1fa6fb9b45f1166011ff3b04c27c010.tar.xz |
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')
-rw-r--r-- | fs/ext4/mballoc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c index 2bb1ddc..e2d8be8 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)); |