From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH][net-next][v2] netlink: remove hash::nelems check in netlink_insert Date: Wed, 12 Sep 2018 00:08:55 -0700 (PDT) Message-ID: <20180912.000855.56112272355978108.davem@davemloft.net> References: <1536627901-18256-1-git-send-email-lirongqing@baidu.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org To: lirongqing@baidu.com Return-path: Received: from shards.monkeyblade.net ([23.128.96.9]:57770 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725966AbeILMMF (ORCPT ); Wed, 12 Sep 2018 08:12:05 -0400 In-Reply-To: <1536627901-18256-1-git-send-email-lirongqing@baidu.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Li RongQing Date: Tue, 11 Sep 2018 09:05:01 +0800 > The type of hash::nelems has been changed from size_t to atom_t > which in fact is int, so not need to check if BITS_PER_LONG, that > is bit number of size_t, is bigger than 32 > > and rht_grow_above_max() will be called to check if hashtable is > too big, ensure it can not bigger than 1<<31 > > Signed-off-by: Zhang Yu > Signed-off-by: Li RongQing Applied.