Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp818942rdb; Wed, 6 Dec 2023 00:13:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IGxmBTrw+LPkwuE0wK/QB+xyOUN/cmlgD/XZ+RFncnWwdweMJzpZ3q/3Jt/q6mJK6YhGte0 X-Received: by 2002:a17:903:1d0:b0:1d0:d312:bc52 with SMTP id e16-20020a17090301d000b001d0d312bc52mr305383plh.45.1701850435790; Wed, 06 Dec 2023 00:13:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701850435; cv=none; d=google.com; s=arc-20160816; b=VYv7ATF4wKZOgMqoNHAAtiI2NCWj+9faxQPsLhpsOBtnLPS9Mx+HXFfTSWgMWD/n+k vrnv7FWrKRWW/3tHqkwXv76xpiQs7c7vwk41w87DDnWuHd5PS74Fp5jUSYCgcaKLpbvO DL3Je9IVFWsauLYdq2oSXVgaaZpSbIPl0Ks6OiWn3IEf/KNz2U39AfZ0nsM8wVQsJ8NI RbYJSkZeIHKLsvHfCCx7/zm+Bu7J4vhHIKDUEgXiUrIiv6bxqzCSTCXoUBP+cGasm8Qe 4XoDMUP9eLcag6BeI95BKbXv4iNwSINUI9o8F8Db0qo0tImIpe1DXsUhJII7G+zQQqbv 14qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ZKizt4iTnV9cayPmYedMVcEI9nEBmDM8KpDsNPl1XzI=; fh=2r5aaXXmN8Cw+jz/mFF4Be4bCeBgMfrMSyfH8yhLbGA=; b=qx4sq3EBlQSlFa87WTIajS1tWJra6B9+0INsWkU99DBD1UFxx0mUyTCtbeE3bb6SL+ tb8IpLPICApnYgoEjdpc1hjoHYtyaZtGiV/M6kFngCZvsKS252Rnj1r+vi8Z271t9nSK Ys3MMaP0H3kydeUHdTOx0G4U/BuK/PqQAXMDQ9yHrwCfmKIY7GJTbwenefKrlx93BVHi Cy1Ko4W5WROD7cIKdCQReuyrLppY+ft4Y29bGDKEL66/NcZgOGBQ5nQV7vPA8PGEtNLa HuAKZ9ExurTc32DHiEk/hApaM9RtIZqIm5TKRlVTXEgszY8xyLrtfQvy6JRVHyaeaDjg xLxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=FWvQECv9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id c3-20020a170902d90300b001d0545646d0si8644503plz.312.2023.12.06.00.13.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 00:13:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=FWvQECv9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 4F194804438B; Wed, 6 Dec 2023 00:13:53 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235185AbjLFINa (ORCPT + 99 others); Wed, 6 Dec 2023 03:13:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232500AbjLFINY (ORCPT ); Wed, 6 Dec 2023 03:13:24 -0500 Received: from mail-oi1-x22c.google.com (mail-oi1-x22c.google.com [IPv6:2607:f8b0:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ABE67D67; Wed, 6 Dec 2023 00:13:15 -0800 (PST) Received: by mail-oi1-x22c.google.com with SMTP id 5614622812f47-3b842c1511fso3845373b6e.1; Wed, 06 Dec 2023 00:13:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701850394; x=1702455194; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=ZKizt4iTnV9cayPmYedMVcEI9nEBmDM8KpDsNPl1XzI=; b=FWvQECv9J+jmrIK0lpq4xVT79Gri2fy7DWg1EYCXZ/HPxR8e2jsOK5IyTCjUvYphTk 4sOViRUYdSA/tN/X3m8bWWUR+vwb3y/wkDH1cX9r/uAByikzBkasj4wuq1bjQsR9WLP5 TLQLDvGL+158yqxdAN4ZEkPtSiKqwQ30Amgfine7/Sxj/OexXU4N6XNjYQ1kg9tD+Rwi jph5HIeqhOcIughzzHJnNvJyZg5BhRIOjfeXiCNPykLDLyuFx8ffWZy8SFuy9alv8OUL O4qGK3TGOAuSefN7IvwVZTysG/+fNOAGZYQdjlpFmsyWp6Nt6oaEGuHC+MeM5KyVEOsg A3xA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701850394; x=1702455194; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ZKizt4iTnV9cayPmYedMVcEI9nEBmDM8KpDsNPl1XzI=; b=WQvlhlBi/zEOaw9z+22V4xoWUlegOBvOlAl2j+jOxEF5hj0Pw3nNpnKSkj4T3+TuAX Att2XrJ8VOfLzIxfOjc3CeKSoal11eMb2EhLPKsxJ41PTR7nPO7lEpD79itJSbH80kO1 ysQZiLUV5VqpDMd2fOt5e9umv8pu6MwoEAReg4lB0FdiLerBWYlTt4zlUrTW1pj0Grdh FoqSwNI9MhHoI3b7DHbDAQ54z2E9/RLv53GvUD3U0/PYS6nRYmIvv6us9sUbBon6vTtY Ud8vKKoCoqs4RUOp6LomxOsG/BRC9IuZ7WnEgdmNwBrb6cjxpcvPWmHP1sbUhoUPAGXw PHYQ== X-Gm-Message-State: AOJu0YxUf9U/XIqjwDGFVrny2PHZpW7CGdgoWUa1Rj1wdwO0lElgzLm9 kyjdmcFSmzKVx/AR/qbuVTo= X-Received: by 2002:a05:6808:2e4a:b0:3b8:b063:9b7b with SMTP id gp10-20020a0568082e4a00b003b8b0639b7bmr906780oib.109.1701850394310; Wed, 06 Dec 2023 00:13:14 -0800 (PST) Received: from localhost.localdomain ([1.245.180.67]) by smtp.gmail.com with ESMTPSA id p12-20020a62ab0c000000b006ce7c28be72sm1455066pff.118.2023.12.06.00.13.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 00:13:13 -0800 (PST) Date: Wed, 6 Dec 2023 17:12:58 +0900 From: Hyeonggon Yoo <42.hyeyoo@gmail.com> To: Vlastimil Babka Cc: David Rientjes , Christoph Lameter , Pekka Enberg , Joonsoo Kim , Andrew Morton , Roman Gushchin , Andrey Ryabinin , Alexander Potapenko , Andrey Konovalov , Dmitry Vyukov , Vincenzo Frascino , Marco Elver , Johannes Weiner , Michal Hocko , Shakeel Butt , Muchun Song , Kees Cook , linux-mm@kvack.org, linux-kernel@vger.kernel.org, kasan-dev@googlegroups.com, cgroups@vger.kernel.org, linux-hardening@vger.kernel.org, Michal Hocko Subject: Re: [PATCH v2 05/21] mm/memcontrol: remove CONFIG_SLAB #ifdef guards Message-ID: References: <20231120-slab-remove-slab-v2-0-9c9c70177183@suse.cz> <20231120-slab-remove-slab-v2-5-9c9c70177183@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231120-slab-remove-slab-v2-5-9c9c70177183@suse.cz> X-Spam-Status: No, score=0.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HK_RANDOM_FROM,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 06 Dec 2023 00:13:53 -0800 (PST) On Mon, Nov 20, 2023 at 07:34:16PM +0100, Vlastimil Babka wrote: > With SLAB removed, these are never true anymore so we can clean up. > > Reviewed-by: Kees Cook > Acked-by: Michal Hocko > Signed-off-by: Vlastimil Babka > --- > mm/memcontrol.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > > diff --git a/mm/memcontrol.c b/mm/memcontrol.c > index 774bd6e21e27..947fb50eba31 100644 > --- a/mm/memcontrol.c > +++ b/mm/memcontrol.c > @@ -5149,7 +5149,7 @@ static ssize_t memcg_write_event_control(struct kernfs_open_file *of, > return ret; > } > > -#if defined(CONFIG_MEMCG_KMEM) && (defined(CONFIG_SLAB) || defined(CONFIG_SLUB_DEBUG)) > +#if defined(CONFIG_MEMCG_KMEM) && defined(CONFIG_SLUB_DEBUG) > static int mem_cgroup_slab_show(struct seq_file *m, void *p) > { > /* > @@ -5258,8 +5258,7 @@ static struct cftype mem_cgroup_legacy_files[] = { > .write = mem_cgroup_reset, > .read_u64 = mem_cgroup_read_u64, > }, > -#if defined(CONFIG_MEMCG_KMEM) && \ > - (defined(CONFIG_SLAB) || defined(CONFIG_SLUB_DEBUG)) > +#if defined(CONFIG_MEMCG_KMEM) && defined(CONFIG_SLUB_DEBUG) > { > .name = "kmem.slabinfo", > .seq_show = mem_cgroup_slab_show, Looks good to me, Reviewed-by: Hyeonggon Yoo <42.hyeyoo@gmail.com> > > -- > 2.42.1 > >