mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
dcache: subtract d_hash_shift from 32 in advance
Signed-off-by: Alexey Dobriyan <[email protected]> Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
01950a349e
commit
854d3e6343
1 changed files with 3 additions and 1 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue