diff options
| -rw-r--r-- | fs/dcache.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/dcache.c b/fs/dcache.c index 667e23ab0b4c..7f079d00475a 100644 --- a/fs/dcache.c +++ b/fs/dcache.c | |||
| @@ -96,8 +96,6 @@ static struct kmem_cache *dentry_cache __read_mostly; | |||
| 96 | * This hash-function tries to avoid losing too many bits of hash | 96 | * This hash-function tries to avoid losing too many bits of hash |
| 97 | * information, yet avoid using a prime hash-size or similar. | 97 | * information, yet avoid using a prime hash-size or similar. |
| 98 | */ | 98 | */ |
| 99 | #define D_HASHBITS d_hash_shift | ||
| 100 | #define D_HASHMASK d_hash_mask | ||
| 101 | 99 | ||
| 102 | static unsigned int d_hash_mask __read_mostly; | 100 | static unsigned int d_hash_mask __read_mostly; |
| 103 | static unsigned int d_hash_shift __read_mostly; | 101 | static unsigned int d_hash_shift __read_mostly; |
| @@ -108,8 +106,8 @@ static inline struct hlist_bl_head *d_hash(const struct dentry *parent, | |||
| 108 | unsigned int hash) | 106 | unsigned int hash) |
| 109 | { | 107 | { |
| 110 | hash += (unsigned long) parent / L1_CACHE_BYTES; | 108 | hash += (unsigned long) parent / L1_CACHE_BYTES; |
| 111 | hash = hash + (hash >> D_HASHBITS); | 109 | hash = hash + (hash >> d_hash_shift); |
| 112 | return dentry_hashtable + (hash & D_HASHMASK); | 110 | return dentry_hashtable + (hash & d_hash_mask); |
| 113 | } | 111 | } |
| 114 | 112 | ||
| 115 | /* Statistics gathering. */ | 113 | /* Statistics gathering. */ |
