From 12f4595a9dc680dbb3b5ee452e9921b5478462b2 Mon Sep 17 00:00:00 2001 From: Li Zefan Date: Fri, 11 Jul 2008 19:27:31 -0400 Subject: [PATCH] --- yaml --- r: 101093 b: refs/heads/master c: d9c769b769a8bcd70371c71797fc4e407b37ba75 h: refs/heads/master i: 101091: 85a75dd5e879f35bda31ae443a8b116dc57668d0 v: v3 --- [refs] | 2 +- trunk/fs/ext4/namei.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index b5833944276e..96261d28cf37 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 9102e4fa8016af8bf1a263df913ee8fdafd4dfb0 +refs/heads/master: d9c769b769a8bcd70371c71797fc4e407b37ba75 diff --git a/trunk/fs/ext4/namei.c b/trunk/fs/ext4/namei.c index c7bf01261c7a..387ad98350c3 100644 --- a/trunk/fs/ext4/namei.c +++ b/trunk/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); } /*