From 6d72116863b0a362c00c00c0374d9dd7bb0d4675 Mon Sep 17 00:00:00 2001 From: Li Zefan Date: Fri, 25 Jul 2008 01:46:29 -0700 Subject: [PATCH] --- yaml --- r: 105853 b: refs/heads/master c: 8ef2720397bb813d4985405a5ae7b8ad6474188b h: refs/heads/master i: 105851: e6b30da043c4b904a558c23f87b1b4e606674708 v: v3 --- [refs] | 2 +- trunk/fs/ext3/namei.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 0fe9c0c1f8ff..9bc3b5f57a67 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: fc80c44277b3c92d808b73e9d40e120229aa4b6a +refs/heads/master: 8ef2720397bb813d4985405a5ae7b8ad6474188b diff --git a/trunk/fs/ext3/namei.c b/trunk/fs/ext3/namei.c index 0b8cf80154f1..d282ea870081 100644 --- a/trunk/fs/ext3/namei.c +++ b/trunk/fs/ext3/namei.c @@ -240,13 +240,13 @@ static inline unsigned dx_root_limit (struct inode *dir, unsigned infosize) { unsigned entry_space = dir->i_sb->s_blocksize - EXT3_DIR_REC_LEN(1) - EXT3_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 - EXT3_DIR_REC_LEN(0); - return 0? 22: entry_space / sizeof(struct dx_entry); + return entry_space / sizeof(struct dx_entry); } /*