Received: by 2002:ab2:2997:0:b0:1ec:cbc4:63fb with SMTP id n23csp473874lqb; Thu, 29 Feb 2024 06:29:53 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVWO1hcPuteFIE99OYh836fkwf3mP76mKFaD8L4TWn0mHMOnGCvpRokue0nurgaSn+GwKjy5upHCSt7oo40ClJEjhAlLT/gLz5xGzOSSA== X-Google-Smtp-Source: AGHT+IF/TjiJUGQ6Z5Gt+7oXWVIqENPB7ZAAT41EuQXnPfoT4jEvKXKgPxWQMZ5DCFcN0wOeUQXN X-Received: by 2002:a05:6e02:ec6:b0:365:bf3:60e2 with SMTP id i6-20020a056e020ec600b003650bf360e2mr2569511ilk.6.1709216993058; Thu, 29 Feb 2024 06:29:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709216993; cv=pass; d=google.com; s=arc-20160816; b=DeVfPfyhGTbIpEJBFbkB/eZSKhTpBZSob/Jz1HiJql7zd4YWd6Rz+FyHzT2k2Frd5E 8AR375uIWQ3kuZcaSTPLjzGfAA1maoG9q7SVENqSxLXRC63xGBMvxPquhVGWPMPJiwzU kpWaVDp9UNGFtVD4xk313QvF/6SZD/TUngr4WSk42OIrB7yI5sZ87l6Q3HcZIuju+j2D X6AqX3wm31aBhxyAbR4OHU9a/4ShOCYtivH5nKBLHGUxwgwMbvpZydvWLSbupaaxURz8 nzR4njDAbbd3t8eZDtov8SCkJt2Dlwj5ancZleDbEh9mOsNwRTRnqwLtMBubGYqhOrxS MPKg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=iiT3XNyZUH95vAKW5douxdlTZiY7Es2dmDaVN90xKxw=; fh=XcyHiMd5Jj0/4ADd/NctHApeFBfgDUNcoZDazOEtSTQ=; b=yKEfisTgHXaiBui0UwHt1IlNAdGBr9XK0se9gmOLS17mRa3wFu2e1oi/ENrB3Dkqij kiMeQbtiUMRDurQ1zwJTyIsykGZUnghXeY9RgCvf9pLVUyjWfPbUi+ET2IC6LkBjYvue 7vhQpnWj++ro53CQYp7dmgaW9pOR7i1D7vkvLmtuycjQeOxWSqD/p4KAq1TKhWKtMnWs CC3FnGx9x7pxtVqCgkx3awwQ334ncyf/kSLQgiP50TGpNam62Ztdlz5SknmdUKy2kCx8 0t8GcfIjcBIyFHFbMpG5pDRQDiDRZyNTuMXXN05du8eMgMsakVe4IwfHmPbtQuWrsbhz SYXQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bZjMd6Nj; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-86844-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86844-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id g6-20020aa78746000000b006e475352d12si1386722pfo.285.2024.02.29.06.29.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 06:29:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-86844-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bZjMd6Nj; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-86844-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86844-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id B483E28388A for ; Thu, 29 Feb 2024 14:29:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D22471361A3; Thu, 29 Feb 2024 14:29:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="bZjMd6Nj" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 712F2130AC1 for ; Thu, 29 Feb 2024 14:29:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709216983; cv=none; b=LCqlidPCTtsDwsfhOdCSSpaXUOPNJ/I4lWCiMxSHpB9WYijFeRsTS9oFMjHJ1YmtjvaOw0F+Bw0tvdZu/VHMlRIHW+fc+fLXJ6PL5/0DpBysiU9mFFG3fqSWNTf5p86eVWlepIEh0mqg8G/5cbjidFtyR1BCTwSGrF6LWqQSGeo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709216983; c=relaxed/simple; bh=K4+fbJQvKKYfXr6QSBPwM7KmLB+wWWg+oWBZ19i7qns=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=H5FkM2IMgkpQie0zCXaMDm801GuAP4cAi6+ScWyD/XBUwPHcmjhcx6dy5ksziLIRj02dF9CQVOsx0vMcpm7lu7aTgwm63I3ik1xCarZUzscBPEVM9HG7GOWSAAjTrMNPuKpf83+zhGznYuTpZQ4qmV4fMgzKTHBnjsUFWZNoDJM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=bZjMd6Nj; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1709216980; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=iiT3XNyZUH95vAKW5douxdlTZiY7Es2dmDaVN90xKxw=; b=bZjMd6NjoqN22IXp0Hw1kGP8kyw7zWBqsZaiyLuXU9sQuhL7/nTKKnpoyrbgb4xafCfyLi QItzu+vuKxVyUhRBTERP/YYglMLG7tBeghbGUMgItXxd5M4B35k9pNHStXJf7hYahjgJ6S XumN6ckoeF6Q6YY0fTKKHWO3BfJ6ymg= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-214-MR_t1szwNcy432pLgrTpJA-1; Thu, 29 Feb 2024 09:29:35 -0500 X-MC-Unique: MR_t1szwNcy432pLgrTpJA-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 6338F85A599; Thu, 29 Feb 2024 14:29:31 +0000 (UTC) Received: from [10.22.8.117] (unknown [10.22.8.117]) by smtp.corp.redhat.com (Postfix) with ESMTP id 36B2D492BE2; Thu, 29 Feb 2024 14:29:30 +0000 (UTC) Message-ID: <90394965-e2a4-4915-a717-eef75f660dfb@redhat.com> Date: Thu, 29 Feb 2024 09:29:29 -0500 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/2] cgroup/cpuset: Remove cpuset_do_slab_mem_spread() Content-Language: en-US To: Xiongwei Song , lizefan.x@bytedance.com, tj@kernel.org, hannes@cmpxchg.org, corbet@lwn.net Cc: vbabka@suse.cz, yosryahmed@google.com, rostedt@goodmis.org, cl@linux.com, chengming.zhou@linux.dev, zhengyejian1@huawei.com, cgroups@vger.kernel.org, linux-mmc@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240229142007.1278610-1-xiongwei.song@windriver.com> From: Waiman Long In-Reply-To: <20240229142007.1278610-1-xiongwei.song@windriver.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.10 On 2/29/24 09:20, Xiongwei Song wrote: > The SLAB allocator has been removed sine 6.8-rc1 [1], so there is no user > with SLAB_MEM_SPREAD and cpuset_do_slab_mem_spread(). Then SLAB_MEM_SPREAD > is marked as unused by [2]. Here we can remove > cpuset_do_slab_mem_spread(). For more details, please check [3]. > > [1] https://lore.kernel.org/linux-mm/20231120-slab-remove-slab-v2-0-9c9c70177183@suse.cz/ > [2] https://lore.kernel.org/linux-kernel/20240223-slab-cleanup-flags-v2-0-02f1753e8303@suse.cz/T/ > [3] https://lore.kernel.org/lkml/32bc1403-49da-445a-8c00-9686a3b0d6a3@redhat.com/T/#mf14b838c5e0e77f4756d436bac3d8c0447ea4350 > > Signed-off-by: Xiongwei Song > --- > include/linux/cpuset.h | 10 ---------- > 1 file changed, 10 deletions(-) > > diff --git a/include/linux/cpuset.h b/include/linux/cpuset.h > index 875d12598bd2..0ce6ff0d9c9a 100644 > --- a/include/linux/cpuset.h > +++ b/include/linux/cpuset.h > @@ -121,11 +121,6 @@ static inline int cpuset_do_page_mem_spread(void) > return task_spread_page(current); > } > > -static inline int cpuset_do_slab_mem_spread(void) > -{ > - return task_spread_slab(current); > -} > - > extern bool current_cpuset_is_being_rebound(void); > > extern void rebuild_sched_domains(void); > @@ -264,11 +259,6 @@ static inline int cpuset_do_page_mem_spread(void) > return 0; > } > > -static inline int cpuset_do_slab_mem_spread(void) > -{ > - return 0; > -} > - > static inline bool current_cpuset_is_being_rebound(void) > { > return false; Reviewed-by: Waiman Long