Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp879036ybi; Fri, 12 Jul 2019 06:08:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqx5CmiDtuuw5Jha1po9HyvyaB5akBNIHUDuFSTrqqCN0SHUXbCOmT+1Y7cunQd8PfzoRCdD X-Received: by 2002:a17:90a:de02:: with SMTP id m2mr11706861pjv.18.1562936923877; Fri, 12 Jul 2019 06:08:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562936923; cv=none; d=google.com; s=arc-20160816; b=TPUTYTXZ/LiVVFWVfyeC7h1FFM6/3zaYyazXSzAAtbu4dGxbRTsXN1AIMfsWc8XOC4 lMJ2aLzJszFAJHRlWZBvukwmedMbvpLVTlrju4eTLWAb9CwnLi9fm1KnS+L1cKygn4Os y6NXobd8g6Dygg8MwS6frh3omfEjTKg44rg3NmGIAHgn0itCgFDcqdggBSvJddb6oAjQ WF4dlG7IWptMj1hiREXU6j6o3KI1uH7VIGKACR0X8EapCBC3aW3BK3BO6ozOv7VXBuKJ 8D9xl0BzmK43a52sGYO2VYu3OdGNeWZADJx0gRH7YDCBqlQHETU1GaaLegB2K3zqHh6z FGeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=M8wX1u1AyY8aIZh85CrgBQrNgkI4YoDiE4Y/ARBtWTI=; b=TkYWVPYMfjKY6bvwvrC8Rk1pi2Dl0Iars+vpoiYkKzdw87p0q4uBg05VxHEUsDKxZR pkvRK0n42o6j896RxZ29C72CsuWJDPurcTTKgbfI9lRgPUzzpzFtbzQvMbNi2j2t3dkH ZwCGIKORcwAQkQr3V9eitOXlE+yUpmBslTcmVlkUKM9unON5Cj7bQoxXCd2YVUdNz1qa sFb2tPv2iN6alcBcL7bOF3B1jJsHMDfab/mDhTaJqkBfm4xgzd/+QOBiwvPXSiNdHgvS U9WTYPCWXYWivOxcrrSQdfrzgOMx+ArRMHVkX0cRYq4ajpeLHcDm7GoeFKs+CsQVZCmg aoNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rHEVvDNm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x139si3810982pgx.251.2019.07.12.06.08.28; Fri, 12 Jul 2019 06:08:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rHEVvDNm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727641AbfGLNHo (ORCPT + 99 others); Fri, 12 Jul 2019 09:07:44 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:45743 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726449AbfGLNHm (ORCPT ); Fri, 12 Jul 2019 09:07:42 -0400 Received: by mail-pl1-f195.google.com with SMTP id y8so4751439plr.12; Fri, 12 Jul 2019 06:07:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=M8wX1u1AyY8aIZh85CrgBQrNgkI4YoDiE4Y/ARBtWTI=; b=rHEVvDNmjPN89MNTOPTSN3d/nJEc78QJ8AYNecX5Bs+ZA/Q004H178HvUmWoI/vgA0 GBEfWvjsCj4aGjGBm8uyQ7jsVLTdZcXbZUvRU5P8sruoji9Sb4qg/Z7NiJICtnpclT7W T8YAR54AWq1g+hvk0GeXSi/hhtl+XsJbZaWhS1tCw0dW2OKqEbmpGIVCIpW5FNs/7KJY WdsDRHhxgOJmLtwUYPAM1HBtYXaB8l66Nvsn7Eghe8itAoGMM65i37/Kc1bLc2bsCK5h 9+DvE7ZXQJV0sV5bDMAG2Su6TPAKs7tXjIWm8F0dvrWMsL4kudNNmddXsFWMrxcI/ajg NKOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=M8wX1u1AyY8aIZh85CrgBQrNgkI4YoDiE4Y/ARBtWTI=; b=c7Cn1jEgYzcUgXnPa9J8zL6SW9hyvni4jktfMG7cZEsWQmrG7Fk+UBPeK+Q6fEsDO9 xeh0PBvbO+COi2uuu3zHDQ5YGE2RHG1ErPXFMGrZvcL+8EzcvsrPajUnwN9h4pXYic0j LEOfNVhx/8I9rJ0/CmVzh3dUt0tSYOODx6VK638cVBt9z15Chd1DVW9VJAZu7xUblgu/ qnfkP6bmnceNz7wCqE9RUIZOqdhPrJEGxg/+MLEYeY38KamxMUys9EcVfWPPkcsNmk2x G67nwXAi4A+W+uiEDpEt7JTNwh2d//8XyDLmUZ0P8x4SjuTVBzp8FMQN9Xe5B1EWcBkY cAzg== X-Gm-Message-State: APjAAAWQlW9KspLvJvJYd3eXzwapLGKpb8Fli+2U9e8DzXBNk4Bi1wDc Y9mnfDvBETE+L/RXIwmuwMXN20yEK71VRQ== X-Received: by 2002:a17:902:7c90:: with SMTP id y16mr11585166pll.238.1562936862121; Fri, 12 Jul 2019 06:07:42 -0700 (PDT) Received: from localhost.localdomain ([116.66.213.65]) by smtp.gmail.com with ESMTPSA id z4sm15853303pfg.166.2019.07.12.06.07.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 12 Jul 2019 06:07:41 -0700 (PDT) From: yangxingwu To: wensong@linux-vs.org Cc: horms@verge.net.au, ja@ssi.bg, pablo@netfilter.org, kadlec@blackhole.kfki.hu, fw@strlen.de, davem@davemloft.net, netdev@vger.kernel.org, lvs-devel@vger.kernel.org, netfilter-devel@vger.kernel.org, coreteam@netfilter.org, linux-kernel@vger.kernel.org, joe@perches.com, yangxingwu Subject: [PATCH] ipvs: remove unnecessary space Date: Fri, 12 Jul 2019 21:07:21 +0800 Message-Id: <20190712130721.7168-1-xingwu.yang@gmail.com> X-Mailer: git-send-email 2.20.1 (Apple Git-117) In-Reply-To: <80a4e132f3be48899904eccdc023f5c53229840b.camel@perches.com> References: <80a4e132f3be48899904eccdc023f5c53229840b.camel@perches.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org this patch removes the extra space and use bitmap_zalloc instead Signed-off-by: yangxingwu --- 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