提交 854d3e63 编写于 作者: A Alexey Dobriyan 提交者: Al Viro

dcache: subtract d_hash_shift from 32 in advance

Signed-off-by: NAlexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 01950a34
......@@ -110,7 +110,7 @@ static struct hlist_bl_head *dentry_hashtable __read_mostly;
static inline struct hlist_bl_head *d_hash(unsigned int hash)
{
return dentry_hashtable + (hash >> (32 - d_hash_shift));
return dentry_hashtable + (hash >> d_hash_shift);
}
#define IN_LOOKUP_SHIFT 10
......@@ -3593,6 +3593,7 @@ static void __init dcache_init_early(void)
&d_hash_mask,
0,
0);
d_hash_shift = 32 - d_hash_shift;
}
static void __init dcache_init(void)
......@@ -3619,6 +3620,7 @@ static void __init dcache_init(void)
&d_hash_mask,
0,
0);
d_hash_shift = 32 - d_hash_shift;
}
/* SLAB cache for __getname() consumers */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册