diff options
author | Li Zefan <lizf@cn.fujitsu.com> | 2008-07-12 03:27:31 +0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2008-07-12 03:27:31 +0400 |
commit | d9c769b769a8bcd70371c71797fc4e407b37ba75 (patch) | |
tree | c30a8741d1613ca8170992cce55a4e4ef8381972 /fs | |
parent | 9102e4fa8016af8bf1a263df913ee8fdafd4dfb0 (diff) | |
download | linux-d9c769b769a8bcd70371c71797fc4e407b37ba75.tar.xz |
ext4: cleanup never-used magic numbers from htree code
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 <adilger@sun.com>
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Mingming Cao <cmm@us.ibm.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/ext4/namei.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ext4/namei.c b/fs/ext4/namei.c index c7bf01261c7a..387ad98350c3 100644 --- a/fs/ext4/namei.c +++ b/fs/ext4/namei.c @@ -241,13 +241,13 @@ static inline unsigned dx_root_limit (struct inode *dir, unsigned infosize) { 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); } /* |