mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
test_rhashtable: Use rhashtable max_size instead of max_shift
This patch converts test_rhashtable to use rhashtable max_size instead of the obsolete max_shift. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
446c89ac1f
commit
4f509df4f5
@@ -201,7 +201,7 @@ static int __init test_rht_init(void)
|
|||||||
.key_offset = offsetof(struct test_obj, value),
|
.key_offset = offsetof(struct test_obj, value),
|
||||||
.key_len = sizeof(int),
|
.key_len = sizeof(int),
|
||||||
.hashfn = jhash,
|
.hashfn = jhash,
|
||||||
.max_shift = 1, /* we expand/shrink manually here */
|
.max_size = 2, /* we expand/shrink manually here */
|
||||||
.nulls_base = (3U << RHT_BASE_SHIFT),
|
.nulls_base = (3U << RHT_BASE_SHIFT),
|
||||||
};
|
};
|
||||||
int err;
|
int err;
|
||||||
|
|||||||
Reference in New Issue
Block a user