projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b051d8d
)
ext4: fix a wrong comment in __mb_check_buddy()
author
Robin Dong
<sanbai@taobao.com>
Wed, 26 Oct 2011 12:48:54 +0000
(08:48 -0400)
committer
Theodore Ts'o
<tytso@mit.edu>
Wed, 26 Oct 2011 12:48:54 +0000
(08:48 -0400)
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>
fs/ext4/mballoc.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/ext4/mballoc.c
b/fs/ext4/mballoc.c
index 2bb1ddc5c30b33a3c7d64462abfc6ff80dd9fd5f..e2d8be8f28bfb8555644bef5100b2f9b8c2cbe9a 100644
(file)
--- 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));