From: Herbert Xu Date: Wed, 18 Mar 2015 09:01:18 +0000 (+1100) Subject: tipc: Use rhashtable max/min_size instead of max/min_shift X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=446c89ac1f6026df9e3e0ca2614b36909398d431;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git tipc: Use rhashtable max/min_size instead of max/min_shift This patch converts tipc to use rhashtable max/min_size instead of the obsolete max/min_shift. Signed-off-by: Herbert Xu Signed-off-by: David S. Miller --- diff --git a/net/tipc/socket.c b/net/tipc/socket.c index 813847d25a49..d7a6c10202e9 100644 --- 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_shift = 20, /* 1M */ - .min_shift = 8, /* 256 */ + .max_size = 1048576, + .min_size = 256, }; return rhashtable_init(&tn->sk_rht, &rht_params);