Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ext4: fix compile error while opening the macro DOUBLE_CHECK

the error is:
fs/ext4/mballoc.c:475:43: error: 'struct ext4_group_info' has
no member named 'bb_bitmap'.
so, the definition of macro DOUBLE_CHECK should before
'struct ext4_group_info', I fixed it, and I moved the macro
AGGRESSIVE_CHECK together, because I think they shoule be together.

Signed-off-by: Aihua Zhang <zhangaihua1@huawei.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>

authored by

Aihua Zhang and committed by
Theodore Ts'o
a2821e34 7915a861

+12 -12
+12
fs/ext4/ext4.h
··· 42 42 */ 43 43 44 44 /* 45 + * with AGGRESSIVE_CHECK allocator runs consistency checks over 46 + * structures. these checks slow things down a lot 47 + */ 48 + #define AGGRESSIVE_CHECK__ 49 + 50 + /* 51 + * with DOUBLE_CHECK defined mballoc creates persistent in-core 52 + * bitmaps, maintains and uses them to check for double allocations 53 + */ 54 + #define DOUBLE_CHECK__ 55 + 56 + /* 45 57 * Define EXT4FS_DEBUG to produce debug messages 46 58 */ 47 59 #undef EXT4FS_DEBUG
-12
fs/ext4/mballoc.h
··· 23 23 #include "ext4.h" 24 24 25 25 /* 26 - * with AGGRESSIVE_CHECK allocator runs consistency checks over 27 - * structures. these checks slow things down a lot 28 - */ 29 - #define AGGRESSIVE_CHECK__ 30 - 31 - /* 32 - * with DOUBLE_CHECK defined mballoc creates persistent in-core 33 - * bitmaps, maintains and uses them to check for double allocations 34 - */ 35 - #define DOUBLE_CHECK__ 36 - 37 - /* 38 26 */ 39 27 #ifdef CONFIG_EXT4_DEBUG 40 28 extern ushort ext4_mballoc_debug;