summaryrefslogtreecommitdiffstats
path: root/include/linux/rhashtable.h
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2015-03-18 20:01:15 +1100
committerDavid S. Miller <davem@davemloft.net>2015-03-18 12:46:40 -0400
commit6aebd940840a4d3a0a8ffc5883d3892f4bd61e90 (patch)
tree2f3e6778b2105a446ce41a09f7d29c078119d63f /include/linux/rhashtable.h
parenta61bfa65facebd64403c94ebdab50323ce8942b2 (diff)
downloadtalos-obmc-linux-6aebd940840a4d3a0a8ffc5883d3892f4bd61e90.tar.gz
talos-obmc-linux-6aebd940840a4d3a0a8ffc5883d3892f4bd61e90.zip
rhashtable: Remove shift from bucket_table
Keeping both size and shift is silly. We only need one. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/rhashtable.h')
-rw-r--r--include/linux/rhashtable.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/linux/rhashtable.h b/include/linux/rhashtable.h
index 1695378b3c5b..f16e85692959 100644
--- a/include/linux/rhashtable.h
+++ b/include/linux/rhashtable.h
@@ -51,7 +51,6 @@ struct rhash_head {
* @size: Number of hash buckets
* @rehash: Current bucket being rehashed
* @hash_rnd: Random seed to fold into hash
- * @shift: Current size (1 << shift)
* @locks_mask: Mask to apply before accessing locks[]
* @locks: Array of spinlocks protecting individual buckets
* @walkers: List of active walkers
@@ -63,7 +62,6 @@ struct bucket_table {
unsigned int size;
unsigned int rehash;
u32 hash_rnd;
- u32 shift;
unsigned int locks_mask;
spinlock_t *locks;
struct list_head walkers;
OpenPOWER on IntegriCloud