Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp64310pxb; Wed, 29 Sep 2021 21:16:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyNDbyC8qu1D1Gko+saTpazEIPCyskZIb/mNuQGgJtpuygcA8f6dpXwGh2yDDe3xzVFLKw5 X-Received: by 2002:a17:902:7e8a:b0:13d:95e2:d9c2 with SMTP id z10-20020a1709027e8a00b0013d95e2d9c2mr2138073pla.8.1632975414343; Wed, 29 Sep 2021 21:16:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632975414; cv=none; d=google.com; s=arc-20160816; b=GDDvoi6dhjGWJbGaS5T4JmfKmKtFYVdENdysAuZMXAphuRNdwFMuhzjuqJUx5jG7zu 7RW1TiY3gBeD2xp/g2es/dRH70tP4qzpd6UodHjiPT9wJUts5ZMQQP74usKR4earAkkj Tk1jYGMeYAlECcvxE0JNQzDgUn8mnOdKzV9TcJFCrQBLrxhb13wz1lWVl7d8Fk0UHHXA KZUBpdOaMNGgEVEJ9iYvUc4MndJeLpBwLqu5ZS8L+E/jmcDjIlri0/avvybZjorDjxHl mozxikXCzyJJEsdbjKVETzhVHU2p2wVts6YSLS7T6TKUHRV3Pi+AxqTv/GmUYdNvm8DV KR8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=wTeRzWOAJmBQWfLvGrTV1vBcWUCGhePXrsGwSzi2E9g=; b=N1uAQG0y+sIs7A2l3Um6G3pEeAzojOZJehOCK4bg6LoaOeah9Pfbks9WQ4OXvYAHqZ Mv61uVC4b6lObxlBw4P8Xw2POCMn+s4k/eoupaBhc+PHk+qCk7sV9M6e0/1XxDFfjCm9 H1KibGAh6O2O+Brk3XnDcQ0WtEhXmVj6Y+1tdSrLkwPh8m4ChxYE9tbC+KE1wtGcQeEm XVJIdwntexh+ytu25mtIX2Zh3EzLysNe/avocJi+nhjlep7/5tkuyJXVOayAbgmiNDX9 pNP+0H7Kh7GmuY1xXedrTMmnsvIryGM17gJa3xoHp1b7L0ROBDL8r6pvnpA+/fe8TFiq 0dow== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b9si2353866plk.45.2021.09.29.21.16.41; Wed, 29 Sep 2021 21:16:54 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348013AbhI3D72 (ORCPT + 99 others); Wed, 29 Sep 2021 23:59:28 -0400 Received: from m97136.mail.qiye.163.com ([220.181.97.136]:20750 "EHLO m97136.mail.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348004AbhI3D71 (ORCPT ); Wed, 29 Sep 2021 23:59:27 -0400 X-Greylist: delayed 311 seconds by postgrey-1.27 at vger.kernel.org; Wed, 29 Sep 2021 23:59:27 EDT Received: from localhost.localdomain (unknown [58.56.27.130]) by smtp2 (Coremail) with SMTP id iOCowAD3WgVbNFVhNQyaAw--.22799S2; Thu, 30 Sep 2021 11:51:56 +0800 (CST) From: Shi Lei To: cl@linux.com, penberg@kernel.org, rientjes@google.com, iamjoonsoo.kim@lge.com, akpm@linux-foundation.org, vbabka@suse.cz Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Shi Lei Subject: [PATCH] mm: remove useless lines in enable_cpucache() Date: Thu, 30 Sep 2021 11:48:45 +0800 Message-Id: <20210930034845.2539-1-shi_lei@massclouds.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: iOCowAD3WgVbNFVhNQyaAw--.22799S2 X-Coremail-Antispam: 1Uf129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UbIYCTnIWIevJa73UjIFyTuYvjfUBwF4DUUUU X-Originating-IP: [58.56.27.130] X-CM-SenderInfo: pvklsz1hl6ztxvvfz0xxgvhudrp/1tbiVRweT1f4pxhyDAAAs2 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org These lines are useless, so remove them. Signed-off-by: Shi Lei --- mm/slab.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/mm/slab.c b/mm/slab.c index 4d826394ffcb..01775fe0e002 100644 --- a/mm/slab.c +++ b/mm/slab.c @@ -3900,8 +3900,6 @@ static int enable_cpucache(struct kmem_cache *cachep, gfp_t gfp) if (err) goto end; - if (limit && shared && batchcount) - goto skip_setup; /* * The head array serves three purposes: * - create a LIFO ordering, i.e. return objects that are cache-warm @@ -3944,7 +3942,6 @@ static int enable_cpucache(struct kmem_cache *cachep, gfp_t gfp) limit = 32; #endif batchcount = (limit + 1) / 2; -skip_setup: err = do_tune_cpucache(cachep, limit, batchcount, shared, gfp); end: if (err) -- 2.25.1