OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b06eee5
)
tipc: Use rhashtable max/min_size instead of max/min_shift
author
Herbert Xu
<herbert@gondor.apana.org.au>
Wed, 18 Mar 2015 09:01:18 +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 tipc to use rhashtable max/min_size instead of
the obsolete max/min_shift.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/socket.c
patch
|
blob
|
history
diff --git
a/net/tipc/socket.c
b/net/tipc/socket.c
index
813847d
..
d7a6c10
100644
(file)
--- a/
net/tipc/socket.c
+++ b/
net/tipc/socket.c
@@
-2286,8
+2286,8
@@
int tipc_sk_rht_init(struct net *net)
.key_offset = offsetof(struct tipc_sock, portid),
.key_len = sizeof(u32), /* portid */
.hashfn = jhash,
- .max_s
hift = 20, /* 1M */
- .min_s
hift = 8, /* 256 */
+ .max_s
ize = 1048576,
+ .min_s
ize = 256,
};
return rhashtable_init(&tn->sk_rht, &rht_params);