mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-26 14:17:26 -04:00
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>
This commit is contained in:
parent
a61bfa65fa
commit
6aebd94084
2 changed files with 2 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue