1 ext4: fix compile error while opening the macro DOUBLE_CHECK
3 From: Aihua Zhang <zhangaihua1@huawei.com>
6 fs/ext4/mballoc.c:475:43: error: 'struct ext4_group_info' has
7 no member named 'bb_bitmap'.
8 so, the definition of macro DOUBLE_CHECK should before
9 'struct ext4_group_info', I fixed it, and I moved the macro
10 AGGRESSIVE_CHECK together, because I think they shoule be together.
12 Signed-off-by: Aihua Zhang <zhangaihua1@huawei.com>
13 Signed-off-by: Theodore Ts'o <tytso@mit.edu>
15 fs/ext4/ext4.h | 12 ++++++++++++
16 fs/ext4/mballoc.h | 12 ------------
17 2 files changed, 12 insertions(+), 12 deletions(-)
19 diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h
20 index 750063f..04a3732 100644
27 + * with AGGRESSIVE_CHECK allocator runs consistency checks over
28 + * structures. these checks slow things down a lot
30 +#define AGGRESSIVE_CHECK__
33 + * with DOUBLE_CHECK defined mballoc creates persistent in-core
34 + * bitmaps, maintains and uses them to check for double allocations
36 +#define DOUBLE_CHECK__
39 * Define EXT4FS_DEBUG to produce debug messages
42 diff --git a/fs/ext4/mballoc.h b/fs/ext4/mballoc.h
43 index d634e18..3ef1df6 100644
44 --- a/fs/ext4/mballoc.h
45 +++ b/fs/ext4/mballoc.h
50 - * with AGGRESSIVE_CHECK allocator runs consistency checks over
51 - * structures. these checks slow things down a lot
53 -#define AGGRESSIVE_CHECK__
56 - * with DOUBLE_CHECK defined mballoc creates persistent in-core
57 - * bitmaps, maintains and uses them to check for double allocations
59 -#define DOUBLE_CHECK__
63 #ifdef CONFIG_EXT4_DEBUG
64 extern ushort ext4_mballoc_debug;