add patch fix-compile-error-while-opening-the-macros-DOUBLE_CHECK
[ext4-patch-queue.git] / fix-compile-error-while-opening-the-macros-DOUBLE_CHECK
blob2463340634da3d6dff40be7917c462c79d3dfa1d
1 ext4: fix compile error while opening the macro DOUBLE_CHECK
3 From: Aihua Zhang <zhangaihua1@huawei.com>
5 the error is:
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>
14 ---
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
21 --- a/fs/ext4/ext4.h
22 +++ b/fs/ext4/ext4.h
23 @@ -41,6 +41,18 @@
24   */
26  /*
27 + * with AGGRESSIVE_CHECK allocator runs consistency checks over
28 + * structures. these checks slow things down a lot
29 + */
30 +#define AGGRESSIVE_CHECK__
32 +/*
33 + * with DOUBLE_CHECK defined mballoc creates persistent in-core
34 + * bitmaps, maintains and uses them to check for double allocations
35 + */
36 +#define DOUBLE_CHECK__
38 +/*
39   * Define EXT4FS_DEBUG to produce debug messages
40   */
41  #undef EXT4FS_DEBUG
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
46 @@ -23,18 +23,6 @@
47  #include "ext4.h"
49  /*
50 - * with AGGRESSIVE_CHECK allocator runs consistency checks over
51 - * structures. these checks slow things down a lot
52 - */
53 -#define AGGRESSIVE_CHECK__
55 -/*
56 - * with DOUBLE_CHECK defined mballoc creates persistent in-core
57 - * bitmaps, maintains and uses them to check for double allocations
58 - */
59 -#define DOUBLE_CHECK__
61 -/*
62   */
63  #ifdef CONFIG_EXT4_DEBUG
64  extern ushort ext4_mballoc_debug;
65 -- 
66 1.7.1