projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9102e4f
)
ext4: cleanup never-used magic numbers from htree code
author
Li Zefan
<
[email protected]
>
Fri, 11 Jul 2008 23:27:31 +0000
(19:27 -0400)
committer
Theodore Ts'o
<
[email protected]
>
Fri, 11 Jul 2008 23:27:31 +0000
(19:27 -0400)
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 <
[email protected]
>
Signed-off-by: Li Zefan <
[email protected]
>
Signed-off-by: Mingming Cao <
[email protected]
>
Signed-off-by: "Theodore Ts'o" <
[email protected]
>
fs/ext4/namei.c
patch
|
blob
|
history
diff --git
a/fs/ext4/namei.c
b/fs/ext4/namei.c
index c7bf01261c7ae49fa7138e147ffec7024ac996cf..387ad98350c378425beee97065cc51389903564d 100644
(file)
--- 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);
}
/*