aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorEric Sandeen <sandeen@redhat.com>2007-10-16 18:38:25 -0400
committerTheodore Ts'o <tytso@mit.edu>2007-10-17 18:50:00 -0400
commit4074fe3736b1a43431dff870bf9055ac5dcf3f03 (patch)
treebd33adb6b06eef7f7405addac686ae170750903d /include
parentf077d0d7ea5d65d01f2ce2e7131e964c13a32433 (diff)
ext4: remove #ifdef CONFIG_EXT4_INDEX
CONFIG_EXT4_INDEX is not an exposed config option in the kernel, and it is unconditionally defined in ext4_fs.h. tune2fs is already able to turn off dir indexing, so at this point it's just cluttering up the code. Remove it. Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: Mingming Cao <cmm@us.ibm.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/ext4_fs.h14
1 files changed, 2 insertions, 12 deletions
diff --git a/include/linux/ext4_fs.h b/include/linux/ext4_fs.h
index 3baeb996fd3f..151738af6be2 100644
--- a/include/linux/ext4_fs.h
+++ b/include/linux/ext4_fs.h
@@ -36,10 +36,6 @@
36/*max window size: 1024(direct blocks) + 3([t,d]indirect blocks) */ 36/*max window size: 1024(direct blocks) + 3([t,d]indirect blocks) */
37#define EXT4_MAX_RESERVE_BLOCKS 1027 37#define EXT4_MAX_RESERVE_BLOCKS 1027
38#define EXT4_RESERVE_WINDOW_NOT_ALLOCATED 0 38#define EXT4_RESERVE_WINDOW_NOT_ALLOCATED 0
39/*
40 * Always enable hashed directories
41 */
42#define CONFIG_EXT4_INDEX
43 39
44/* 40/*
45 * Debug code 41 * Debug code
@@ -766,17 +762,11 @@ struct ext4_dir_entry_2 {
766 * (c) Daniel Phillips, 2001 762 * (c) Daniel Phillips, 2001
767 */ 763 */
768 764
769#ifdef CONFIG_EXT4_INDEX 765#define is_dx(dir) (EXT4_HAS_COMPAT_FEATURE(dir->i_sb, \
770 #define is_dx(dir) (EXT4_HAS_COMPAT_FEATURE(dir->i_sb, \ 766 EXT4_FEATURE_COMPAT_DIR_INDEX) && \
771 EXT4_FEATURE_COMPAT_DIR_INDEX) && \
772 (EXT4_I(dir)->i_flags & EXT4_INDEX_FL)) 767 (EXT4_I(dir)->i_flags & EXT4_INDEX_FL))
773#define EXT4_DIR_LINK_MAX(dir) (!is_dx(dir) && (dir)->i_nlink >= EXT4_LINK_MAX) 768#define EXT4_DIR_LINK_MAX(dir) (!is_dx(dir) && (dir)->i_nlink >= EXT4_LINK_MAX)
774#define EXT4_DIR_LINK_EMPTY(dir) ((dir)->i_nlink == 2 || (dir)->i_nlink == 1) 769#define EXT4_DIR_LINK_EMPTY(dir) ((dir)->i_nlink == 2 || (dir)->i_nlink == 1)
775#else
776 #define is_dx(dir) 0
777#define EXT4_DIR_LINK_MAX(dir) ((dir)->i_nlink >= EXT4_LINK_MAX)
778#define EXT4_DIR_LINK_EMPTY(dir) ((dir)->i_nlink == 2)
779#endif
780 770
781/* Legal values for the dx_root hash_version field: */ 771/* Legal values for the dx_root hash_version field: */
782 772