Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp1256094rwj; Sun, 18 Dec 2022 05:11:18 -0800 (PST) X-Google-Smtp-Source: AA0mqf6BieE4BbCQeVLug1eoj+ZitbuccUVX0x5QlD2QnDrquvw78gqRxV1FpVDgU7D8xaxz6BPP X-Received: by 2002:a17:902:ab54:b0:189:6bda:e98f with SMTP id ij20-20020a170902ab5400b001896bdae98fmr38382167plb.58.1671369077956; Sun, 18 Dec 2022 05:11:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671369077; cv=none; d=google.com; s=arc-20160816; b=oreQt3FcVWYxKBdr2ahF64Y5W462m21OpdDidGJjYfV/jBogqB3VUlRniZbDSGMbZP VfIDI2Str3CcMTtSZl65OnAQib5YabvnEAqyxMoVryE2nxC6vr+/qQiUJr/taDdgRjhY aRki6s8fo0sGCDTN0r4a6i/tsZDKJPcu7y8V0pICXjdng3qAuHSs039JGr431TgOC06i EKZJYbDSHGhCtH7VDJDaKiEYZQg/vongadKAxn4OwecsTjmTZw8Az8CioZqgC411Iw/6 hg+sleAxcectbtk85B/nrpYwh1/jbHBtcChOGmZud9vgj9PO6JXGVNfS9mRmbssqYpbn 3rrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=CkXumCPbT7AlLQUTaMCCrIg4vJxHEvL4bKuVigTyrs4=; b=saXRo2BJRJlm2ud28IqWF45e4W0E0JW6BMH6zbbUWr+w60GLyy8DtRTFj82jaGze+y y82N/If9Nfvjasc1F6Qb0x0YxBC/q9LpXPQcMvu9POWGoOtCz3q8LXpZ3QH0srU1xsRW MRn6Ig6qgt97eaJEWQsmubUfXK9YJ4c35OIXLTqnnLfRkO3H2j5/0eAmCDT0GGOtM8ID OgR0sog3JHyesYz5gmyAC7Inn9yqV3Y9rIwZ/x3+0oiYY282Czim+tlTr/OZnTqLTOe5 0leMs3s99EQrrpe7P589jZTAaDd+06rQpu7Dnv1NjSA2AJTd5lioEJ3jENRvoGQ1UH8g Az3g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 3-20020a630603000000b0047907294f9dsi7786157pgg.670.2022.12.18.05.11.08; Sun, 18 Dec 2022 05:11:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230489AbiLRMMt (ORCPT + 71 others); Sun, 18 Dec 2022 07:12:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229537AbiLRMMq (ORCPT ); Sun, 18 Dec 2022 07:12:46 -0500 Received: from smtpbgsg1.qq.com (smtpbgsg1.qq.com [54.254.200.92]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D350A6174; Sun, 18 Dec 2022 04:12:41 -0800 (PST) X-QQ-mid: bizesmtp70t1671365528ty2do9ap Received: from localhost.localdomain ( [113.200.76.118]) by bizesmtp.qq.com (ESMTP) with id ; Sun, 18 Dec 2022 20:12:06 +0800 (CST) X-QQ-SSF: 01400000002000B0D000B00A0000000 X-QQ-FEAT: ILHsT53NKPgCay+doqSjgGYDcvmOKqmjpjYEJiGb0MHrDMNATU/mizb2BeNtV dz35PUxh6RnVFkkJo6gWp4xYAhpMUnD9QgHopfv/dlK2NcNrjik/IiCYllIhhySxxCnkefn ZvAFVawg0VXM7YdDfEvENB7B10dYgTc+luTaUULnKc0/QV7h6+CiVxWv1D+TYV8hBCdmYA+ CfUu+gy66DEsNQ0aNWqgGcOx79b72l1q4fYlOBCj8iB+PSMJ8+62Y36/vfk/o5qaCtpA4op Yf2e+zaDDMd3iYuTot3fNUlMKMwdP7doGKWaY5QrighKW45Nyc+HVKfv8T6uQzVB/+xqhUD krbdCoLz6otPeeh+ggcSwlHSONbDd/uzgt/OSQcS4XvLBYbT3oCVa/je4nJzg== X-QQ-GoodBg: 2 From: gouhao@uniontech.com To: 42.hyeyoo@gmail.com Cc: akpm@linux-foundation.org, cl@linux.com, gouhao@uniontech.com, gouhaojake@163.com, iamjoonsoo.kim@lge.com, keescook@chromium.org, linux-hardening@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, mingo@elte.hu, penberg@kernel.org, rientjes@google.com, roman.gushchin@linux.dev, vbabka@suse.cz Subject: Re: [PATCH] mm/slab: remove unused slab_early_init Date: Sun, 18 Dec 2022 20:12:04 +0800 Message-Id: <20221218121204.27720-1-gouhao@uniontech.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:uniontech.com:qybglogicsvr:qybglogicsvr7 X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SORTED_RECIPS,SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thanks for your review, i will fix it in next version patch. :) Thanks, Gou Hao > > > so early during bootup. > > > > The only user of 'slab_early_init' was removed in commit > > '3217fd9bdf00 ("mm/slab: make criteria for off slab > > determination robust and simple")'. > > > > Signed-off-by: Gou Hao > > --- > > mm/slab.c | 3 --- > > 1 file changed, 3 deletions(-) > > > > diff --git a/mm/slab.c b/mm/slab.c > > index 7a269db050ee..ede1f29fd81c 100644 > > --- a/mm/slab.c > > +++ b/mm/slab.c > > @@ -220,7 +220,6 @@ static inline void fixup_objfreelist_debug(struct kmem_cache *cachep, > > static inline void fixup_slab_list(struct kmem_cache *cachep, > > struct kmem_cache_node *n, struct slab *slab, > > void **list); > > -static int slab_early_init = 1; > > > > #define INDEX_NODE kmalloc_index(sizeof(struct kmem_cache_node)) > > > > @@ -1249,8 +1248,6 @@ void __init kmem_cache_init(void) > > slab_state = PARTIAL_NODE; > > setup_kmalloc_cache_index_table(); > > > > - slab_early_init = 0; > > - > > /* 5) Replace the bootstrap kmem_cache_node */ > > { > > int nid; > > -- > > 2.20.1 > > Nice cleanup, thanks! > > Acked-by: Hyeonggon Yoo <42.hyeyoo@gmail.com>