ext4: cleanup never-used magic numbers from htree code From: Li Zefan dx_root_limit() will had some dead code which forced it to always return 20, and dx_node_limit to always return 22 for debugging purposes. Remove it. Acked-by: Andreas Dilger Signed-off-by: Li Zefan Signed-off-by: Mingming Cao Signed-off-by: "Theodore Ts'o" --- fs/ext4/namei.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Index: linux-2.6.26-rc9/fs/ext4/namei.c =================================================================== --- linux-2.6.26-rc9.orig/fs/ext4/namei.c 2008-07-11 16:05:00.000000000 -0700 +++ linux-2.6.26-rc9/fs/ext4/namei.c 2008-07-11 16:05:04.000000000 -0700 @@ -241,13 +241,13 @@ static inline unsigned dx_root_limit (st { unsigned entry_space = dir->i_sb->s_blocksize - EXT4_DIR_REC_LEN(1) - EXT4_DIR_REC_LEN(2) - infosize; - return 0? 20: entry_space / sizeof(struct dx_entry); + return entry_space / sizeof(struct dx_entry); } static inline unsigned dx_node_limit (struct inode *dir) { unsigned entry_space = dir->i_sb->s_blocksize - EXT4_DIR_REC_LEN(0); - return 0? 22: entry_space / sizeof(struct dx_entry); + return entry_space / sizeof(struct dx_entry); } /*