projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
446c89a
)
test_rhashtable: Use rhashtable max_size instead of max_shift
author
Herbert Xu
<herbert@gondor.apana.org.au>
Wed, 18 Mar 2015 09:01:19 +0000
(20:01 +1100)
committer
David S. Miller
<davem@davemloft.net>
Wed, 18 Mar 2015 16:46:40 +0000
(12:46 -0400)
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>
lib/test_rhashtable.c
patch
|
blob
|
history
diff --git
a/lib/test_rhashtable.c
b/lib/test_rhashtable.c
index 16974fd89e4e854edabc9b66533b4e3da2e9ccba..2bc403d8f9ee80a19a1e31d206a1cd5e5e632311 100644
(file)
--- a/
lib/test_rhashtable.c
+++ b/
lib/test_rhashtable.c
@@
-201,7
+201,7
@@
static int __init test_rht_init(void)
.key_offset = offsetof(struct test_obj, value),
.key_len = sizeof(int),
.hashfn = jhash,
- .max_s
hift = 1
, /* we expand/shrink manually here */
+ .max_s
ize = 2
, /* we expand/shrink manually here */
.nulls_base = (3U << RHT_BASE_SHIFT),
};
int err;