Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp15235624rwb; Mon, 28 Nov 2022 09:17:33 -0800 (PST) X-Google-Smtp-Source: AA0mqf51Ier9FrOMyRq2Iz6Xya5S796oY+rJ7Cm0nLV2n+ntayJIDPDzlRXQ/wWPkDoLElRhY7mv X-Received: by 2002:ac2:5cbc:0:b0:4b4:e461:3abb with SMTP id e28-20020ac25cbc000000b004b4e4613abbmr10017836lfq.343.1669655853634; Mon, 28 Nov 2022 09:17:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669655853; cv=none; d=google.com; s=arc-20160816; b=w4KjSDiVEKN3Y9130OYl4eQ89s0rPiPh8zDB+T9rLgQ5/InwSIZq50CDn0qRoFe2Vz ZKeZzLp4ASmprtQVPSIqR0Wj3LW5+bsHkNr0rlo6Xr2m6i3Lj5KDexVdLe/fFYfFtFuz P7B+OlsKu6uwsMDxXTzWNEgF2V4qYZg8esgPwS2c5/Cv8+rpGhMRdGvxf0BFvfX9eCup XIgFy2V5IPv4Cgg1rJSMG+48lzreaxfHKb2zaIAaPerrDb7IcXOPHrrwgHqiqGX/BREu jhEE4hFySr70RoDvonqNdf1zbXvfKP0c83h4opBl/ktAL16ViJXn0wvqkuEJ1oEtGoV+ CMGg== 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:sender:dkim-signature; bh=t/jS1zRSpC+P8xp144xwnS5feegCHv0w8ewtLrv0nf8=; b=uQMjw3UuGZDg2q8DwSaJ399KJ4BOPWmC773WQXYR++3QEYmUatFyjXhf72CTI8WSTr kvA3+PhziUamolJIjdA6Y+MCGgf7X7lxOfp0zrLYHhpkZDfYPMyhc5V9ZjDvC8FuVxAZ RW3VaxbCDWiw4PHJxUfQpgg0p7Ai7me7f5n7mhLBayCmwSM/RiBtWM7ljKCvPjTjHpSj G8YrcPvM2iKGTbVnrm5YdvpeQneHbbMZZVy+6Ysj8HyNTnQqAYYwtFT3wcDhX/mQXfiy Y4D/wVkm0mvYExoQ5UxPpDy2YgJMnKZX9F7WlC7z/jmJ2g3kmapldEJ36p8b77NgH7pe 1sUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=kaWfxhV6; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id vp12-20020a170907a48c00b007bb12ecc8besi9415684ejc.939.2022.11.28.09.17.10; Mon, 28 Nov 2022 09:17:33 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=kaWfxhV6; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232410AbiK1RHX (ORCPT + 85 others); Mon, 28 Nov 2022 12:07:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232043AbiK1RHN (ORCPT ); Mon, 28 Nov 2022 12:07:13 -0500 Received: from mail-pg1-x529.google.com (mail-pg1-x529.google.com [IPv6:2607:f8b0:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D52FE23389; Mon, 28 Nov 2022 09:07:12 -0800 (PST) Received: by mail-pg1-x529.google.com with SMTP id s196so10491415pgs.3; Mon, 28 Nov 2022 09:07:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=t/jS1zRSpC+P8xp144xwnS5feegCHv0w8ewtLrv0nf8=; b=kaWfxhV6xf7mJFYhLrtFv1cSXD99yiQq0KYir1cgs5srtEL5R5EtlBW4JHsDgXOPVF uxOAQ5sIrXTK7K9lkqSt/uwFo3SL9OnzltOhtizenHqUIottvCisHR3+tV+1neXnj2bp OuWqD5GjQWfsUGuYn1LlZJZ6wzMTIhsF/xJkpP+uIuEF15E8jnoTlFtby0SCGqPiYJo4 JPMCjV9UKJwC8PsvwzfZVOJmhLdX0Li7oU4xVPQ3jMcizLjiMy5YPiE1JGZWl8D//bwS rjHVPWYCxC2I3HgTOW1TA8ntXVwsZm9IG+b47NRZ5u9t4f2joIgPZpkDRFN+Iqa6peyh 3YxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=t/jS1zRSpC+P8xp144xwnS5feegCHv0w8ewtLrv0nf8=; b=h98bKdo6n6/IqLDX1KttywW6j6IvE99SOqOVcPqK/J5dEEkcX8IPbGlQvjaNoy7tZ/ ++s5/dkOPpg3Ul86a+RbWxP8eeu8UT51OplyVXGFLnR3R7uRwhCJjVtYyPONRV5JaOwu r3YfvCoUoECW9BN/ZuFxsoAlmkl4LC91S5yV1sLcHRvEfnr8RvuVS79EsFENg+DcXnjB Nq17BGYH5jYH03iKgaeyA0/g/XrL2Z1dxwUHhCtS1z0SOTEJpu3XhyhaNzaek7eQkIMM +W6bEWsAuISa9tP5rpF8ujL0MEDjOSCF+B1hcPLdayUpSSDuYgl7rpYn7xlS2UfLWdlM S0LA== X-Gm-Message-State: ANoB5pkvGjtwv6qa4eS0yLutGcuJhULh1BH1fQgMIj2vJcbQYSsKSzu3 uUQTQd2ldy/Cac8IQhMvqKO+wXhmtIw= X-Received: by 2002:a63:5153:0:b0:41a:4bd4:f43f with SMTP id r19-20020a635153000000b0041a4bd4f43fmr29147466pgl.460.1669655232208; Mon, 28 Nov 2022 09:07:12 -0800 (PST) Received: from localhost (2603-800c-1a02-1bae-a7fa-157f-969a-4cde.res6.spectrum.com. [2603:800c:1a02:1bae:a7fa:157f:969a:4cde]) by smtp.gmail.com with ESMTPSA id x22-20020a170902821600b0016be834d54asm8976177pln.306.2022.11.28.09.07.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Nov 2022 09:07:11 -0800 (PST) Sender: Tejun Heo Date: Mon, 28 Nov 2022 07:07:10 -1000 From: Tejun Heo To: "haifeng.xu" Cc: longman@redhat.com, lizefan.x@bytedance.com, hannes@cmpxchg.org, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] cgroup/cpuset: Clean up cpuset_task_status_allowed Message-ID: References: <20221125075133.12718-1-haifeng.xu@shopee.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221125075133.12718-1-haifeng.xu@shopee.com> X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, 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 On Fri, Nov 25, 2022 at 07:51:33AM +0000, haifeng.xu wrote: > cpuset_task_status_allowed just shows mems_allowed status, so > rename it to task_mems_allowed. Moreover, it's only used in > proc_pid_status, so move it to fs/proc/array.c. There is no > intentional function change. > > Signed-off-by: haifeng.xu mems_allowed being a very much cpuset feature, I don't see how this is an improvement. The new code is different and can be another way of doing it, sure, but there's no inherent benefit to it. What's the point of the churn? Thanks. -- tejun