Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1434682ybt; Sun, 14 Jun 2020 23:24:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxC2i2EMFEJ2w6175cFNr3Z1ZT3yc/VE4M/oBQXuZQ1i+QqpD1vyxnSFO0jyPU2P9WVNyRJ X-Received: by 2002:a17:906:695a:: with SMTP id c26mr25010378ejs.214.1592202243837; Sun, 14 Jun 2020 23:24:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592202243; cv=none; d=google.com; s=arc-20160816; b=Z2r3C4mi/IyULiulbCA4jxYjbk+2MJ9WAbCo+l9N/gzN/ieKHZhVDFAWC2LcXd3asG Mia2IVQBkBOY/xDJjupKtPw3VT3PSG2wW5RWDtgDekvoFx/KAmRhZGxDSQZQHf2cWD0G ZA0TF5IdOs9NFa2KXpRdUPKEy7wsbTM7IqHZGzK13AkLpuYdxeGr4+KdDTNNQvierP+W 9EtS6Yp6iOPQQZX9RB3owDAHhU9yJWH2LFGbNqWEIWzwfYhAcIgF0xw9D6VKpM9bu0cV KE6mhdxqyLRvw4iC1OQUYdBrc/FNePc/Ap8EYKR1ud3nhVB5b18JAqo3SvuNlAZSs7zB ispA== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=6UexJ591yY/0sBQwidfRyePuoEU/goCNRqDs0Bqn1P0=; b=AW2+aQXxj7q3TYFWWjAhUvC9UP85JoqEAaBX/Ho68YofC/CFFHjsul6fZhpSqL5TOx hB4wD6LELZOkZxj7rvsYurrTpIig4VoXZfIBuB6VxiDC1pcwIAr10m9LzXqtsKbQ6HJ8 330AwNy6c5lR5OOpvJLypVjKPGVZg5lt/c8un3IbBYTX/yB+CORTN2P3h69PMKy/zvfy SQB0jquVS2FB17cA0xQm0KRZLi+k33i+yKwHwIjBG2kvMvHsJRI+HeaHr2r2ZwECtyL2 cziT8WyPPZ+f5MOD2p1qe3yjtzR9CJr7TAwnjED9tJ69wem3l3V6xD55F9mlCQMZGEQm Ybug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20150623.gappssmtp.com header.s=20150623 header.b=SwKnoN2L; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w29si8819650edl.502.2020.06.14.23.23.41; Sun, 14 Jun 2020 23:24:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@bytedance-com.20150623.gappssmtp.com header.s=20150623 header.b=SwKnoN2L; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728285AbgFOGVX (ORCPT + 99 others); Mon, 15 Jun 2020 02:21:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728162AbgFOGVX (ORCPT ); Mon, 15 Jun 2020 02:21:23 -0400 Received: from mail-io1-xd44.google.com (mail-io1-xd44.google.com [IPv6:2607:f8b0:4864:20::d44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1177AC061A0E for ; Sun, 14 Jun 2020 23:21:22 -0700 (PDT) Received: by mail-io1-xd44.google.com with SMTP id p20so16519909iop.11 for ; Sun, 14 Jun 2020 23:21:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=6UexJ591yY/0sBQwidfRyePuoEU/goCNRqDs0Bqn1P0=; b=SwKnoN2LBJMXiwPZLzjvgItvTNq5+bLqGvbDhWTsULRJeUMDolVhfaTo0DIqZ4UZ/r s8LNecQlyc4a/QhHY5SnWte0Mpo7QpV+jwOinyZHu9Fnm3Gy+3fEkIfPgUNqoay9puVC A9ftYAROGf4nyQpww/PevBIJJpBqiZ0w/5AqfXcDRZFveUv/Xm3ubxezEJzYcOXmTtjH UE01dgXoMSF+8fxTSN7cYllase901fFmRKat7AaWvHgbZCF9fQ24RxZ51WWbBwvftRqm CigC27toyhTGjXiTw0aWIHbUePGP4GBkBoQzwg4I3hWP39pJzRYNF4e1Tx2q/UjyNDGU lgDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=6UexJ591yY/0sBQwidfRyePuoEU/goCNRqDs0Bqn1P0=; b=PbkTfaIuS5NxjJNtA2reB6be5QpO4KmY7t5RPIER4MzZUSbA3YfEq+/ldMXgC+bwRM +rCvuKh9PjHDzO366cM7EMWQ5FlgbVEOS484KX9deMC3enRH4Swt5nxLd7Q6uBQXAUxW m9oRRql27NuKGppN9PQCrY3N2BVXG1z1EuKNfDrXDJJL//1KFuj/0xNEz/i6CPOH4BN3 B1E8vHJBy3zEQFdeUyZGLSRHClYhYAjSEGtpvqjoW7OD+nwZk+TNMvYpCIj+DnPLKH5o 6vUuSWtr5d6DwvjkXHnPg2BWuTMep2c7qJLE+MUR7hXPYdKIMcFitCOx9FQ9d1PPuV5C xb4Q== X-Gm-Message-State: AOAM531xpXqyaadyRiRWqYt1bNI8T8JB0xiNvG/zAhGDaoFaetWpx0NG hmOs7t1bTrDErbkJ/Lth3VqhsYaFfZFlLGhwQh+/iA== X-Received: by 2002:a6b:1745:: with SMTP id 66mr26322154iox.151.1592202081507; Sun, 14 Jun 2020 23:21:21 -0700 (PDT) MIME-Version: 1.0 References: <20200614123923.99189-1-songmuchun@bytedance.com> <20200614123923.99189-3-songmuchun@bytedance.com> In-Reply-To: From: Muchun Song Date: Mon, 15 Jun 2020 14:20:45 +0800 Message-ID: Subject: Re: [External] Re: [PATCH 2/3] mm/slub: Use node_nr_slabs() instead of slabs_node() To: Joonsoo Kim Cc: Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , Linux Memory Management List , LKML Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 15, 2020 at 2:15 PM Joonsoo Kim wrote: > > 2020=EB=85=84 6=EC=9B=94 14=EC=9D=BC (=EC=9D=BC) =EC=98=A4=ED=9B=84 9:39,= Muchun Song =EB=8B=98=EC=9D=B4 =EC=9E=91=EC=84= =B1: > > > > In the some code, we already get the kmem_cache_node, so we can > > use node_nr_slabs() directly instead of slabs_node(). Check the > > condition of n->nr_partial can also be removed because we can get > > the correct result via node_nr_slabs(). > > > > Signed-off-by: Muchun Song > > If appying this patch, there is no reference to slabs_node(). Please remo= ve it. > > Thanks. OK, Thanks. I will remove it in the next version. --=20 Yours, Muchun