]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ext4: fix compile error while opening the macro DOUBLE_CHECK
authorAihua Zhang <zhangaihua1@huawei.com>
Sun, 13 Mar 2016 21:18:12 +0000 (17:18 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 13 Mar 2016 21:18:12 +0000 (17:18 -0400)
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>
fs/ext4/ext4.h
fs/ext4/mballoc.h

index 5623eec7fd229c6b6196af3eb24275912cb5e978..393689dfa1aff8f17aad517c12a0a55b808a505e 100644 (file)
  * The fourth extended filesystem constants/structures
  */
 
+/*
+ * with AGGRESSIVE_CHECK allocator runs consistency checks over
+ * structures. these checks slow things down a lot
+ */
+#define AGGRESSIVE_CHECK__
+
+/*
+ * with DOUBLE_CHECK defined mballoc creates persistent in-core
+ * bitmaps, maintains and uses them to check for double allocations
+ */
+#define DOUBLE_CHECK__
+
 /*
  * Define EXT4FS_DEBUG to produce debug messages
  */
index d634e183b4d4b3034c05520254c87a77bed90200..3ef1df6ae9ec6f67102c52cf9624a317e321d19b 100644 (file)
 #include "ext4_jbd2.h"
 #include "ext4.h"
 
-/*
- * with AGGRESSIVE_CHECK allocator runs consistency checks over
- * structures. these checks slow things down a lot
- */
-#define AGGRESSIVE_CHECK__
-
-/*
- * with DOUBLE_CHECK defined mballoc creates persistent in-core
- * bitmaps, maintains and uses them to check for double allocations
- */
-#define DOUBLE_CHECK__
-
 /*
  */
 #ifdef CONFIG_EXT4_DEBUG