X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=fs%2Fext4%2Fnamei.c;h=387ad98350c378425beee97065cc51389903564d;hb=b8e6c91c74e9f0279b7c51048779b3d62da60b88;hp=c7bf01261c7ae49fa7138e147ffec7024ac996cf;hpb=f795e1407343ebe6597653f4a6a7f770676e84c5;p=linux-2.6 diff --git a/fs/ext4/namei.c b/fs/ext4/namei.c index c7bf01261c..387ad98350 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); } /*