diff options
| author | Robin Dong <[email protected]> | 2011-10-26 12:48:54 +0000 |
|---|---|---|
| committer | Theodore Ts'o <[email protected]> | 2011-10-26 12:48:54 +0000 |
| commit | 0a10da73e1fa6fb9b45f1166011ff3b04c27c010 (patch) | |
| tree | d72a254eb5a9b983e60f6c8b6b1807c0139f123f | |
| parent | ext4: remove unused variable in mb_find_extent() (diff) | |
| download | kernel-0a10da73e1fa6fb9b45f1166011ff3b04c27c010.tar.gz kernel-0a10da73e1fa6fb9b45f1166011ff3b04c27c010.zip | |
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 <[email protected]>
Signed-off-by: "Theodore Ts'o" <[email protected]>
| -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 2bb1ddc5c30b..e2d8be8f28bf 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)); |
