lvs-devel
|
To: | wensong@xxxxxxxxxxxx |
---|---|
Subject: | [PATCH] ipvs: remove unnecessary space |
Cc: | horms@xxxxxxxxxxxx, ja@xxxxxx, pablo@xxxxxxxxxxxxx, kadlec@xxxxxxxxxxxxxxxxx, fw@xxxxxxxxx, davem@xxxxxxxxxxxxx, netdev@xxxxxxxxxxxxxxx, lvs-devel@xxxxxxxxxxxxxxx, netfilter-devel@xxxxxxxxxxxxxxx, coreteam@xxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, joe@xxxxxxxxxxx, yangxingwu <xingwu.yang@xxxxxxxxx> |
From: | yangxingwu <xingwu.yang@xxxxxxxxx> |
Date: | Fri, 12 Jul 2019 21:07:21 +0800 |
this patch removes the extra space and use bitmap_zalloc instead Signed-off-by: yangxingwu <xingwu.yang@xxxxxxxxx> --- net/netfilter/ipvs/ip_vs_mh.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/net/netfilter/ipvs/ip_vs_mh.c b/net/netfilter/ipvs/ip_vs_mh.c index 94d9d34..3229867 100644 --- a/net/netfilter/ipvs/ip_vs_mh.c +++ b/net/netfilter/ipvs/ip_vs_mh.c @@ -174,8 +174,7 @@ static int ip_vs_mh_populate(struct ip_vs_mh_state *s, return 0; } - table = kcalloc(BITS_TO_LONGS(IP_VS_MH_TAB_SIZE), - sizeof(unsigned long), GFP_KERNEL); + table = bitmap_zalloc(IP_VS_MH_TAB_SIZE, GFP_KERNEL); if (!table) return -ENOMEM; -- 1.8.3.1 |
<Prev in Thread] | Current Thread | [Next in Thread> |
---|---|---|
|
Previous by Date: | Re: [PATCH 2/4] lpfc: reduce stack size with CONFIG_GCC_PLUGIN_STRUCTLEAK_VERBOSE, Martin K. Petersen |
---|---|
Next by Date: | [net-next 1/2] ipvs: batch __ip_vs_cleanup, Haishuang Yan |
Previous by Thread: | Re: [PATCH] ipvs: remove unnecessary space, Joe Perches |
Next by Thread: | Re: [PATCH] ipvs: remove unnecessary space, Pablo Neira Ayuso |
Indexes: | [Date] [Thread] [Top] [All Lists] |