aboutsummaryrefslogtreecommitdiff
path: root/fs/dcache.c
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2014-09-18 10:49:37 -0700
committerMark Brown <broonie@kernel.org>2014-09-18 10:49:37 -0700
commite55574f93ecb78dac5a15f29d18f2ab4dbc813bc (patch)
treeffce30ba6d6a11b3fdc5ebd28e5f3cca2d87d12c /fs/dcache.c
parent9ea00e4fa07ce46ab79c92087c72ae100de4de42 (diff)
parentd831fd1b46d04e5c8c8a0431c321578d25852695 (diff)
Merge branch 'linux-linaro-lsk' into linux-linaro-lsk-rtlsk-v3.10-rt-14.09
Diffstat (limited to 'fs/dcache.c')
-rw-r--r--fs/dcache.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/dcache.c b/fs/dcache.c
index c65c38ee0e2b..c69cf6b8a1a7 100644
--- a/fs/dcache.c
+++ b/fs/dcache.c
@@ -97,8 +97,6 @@ static struct kmem_cache *dentry_cache __read_mostly;
* This hash-function tries to avoid losing too many bits of hash
* information, yet avoid using a prime hash-size or similar.
*/
-#define D_HASHBITS d_hash_shift
-#define D_HASHMASK d_hash_mask
static unsigned int d_hash_mask __read_mostly;
static unsigned int d_hash_shift __read_mostly;
@@ -109,8 +107,7 @@ static inline struct hlist_bl_head *d_hash(const struct dentry *parent,
unsigned int hash)
{
hash += (unsigned long) parent / L1_CACHE_BYTES;
- hash = hash + (hash >> D_HASHBITS);
- return dentry_hashtable + (hash & D_HASHMASK);
+ return dentry_hashtable + hash_32(hash, d_hash_shift);
}
/* Statistics gathering. */