Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp1069218lqd; Thu, 25 Apr 2024 05:25:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXZmj7yc93dB2ocbSjcEuN1rJ2JmRxpmeXi4brxtpyzM2sgIkzyew98g28T2wRbwCeP3fS2VLOVixoddEgBgTm5SvC2b/eher38Xi0hzw== X-Google-Smtp-Source: AGHT+IGmecU7tlnC1qL7WlUKjc6L1H4AbYqDHx37wjpsyrWhITqle+jPN1NL93L2yvrg8vF45Keu X-Received: by 2002:a17:90a:a606:b0:2a6:f6ad:1b84 with SMTP id c6-20020a17090aa60600b002a6f6ad1b84mr6396397pjq.0.1714047903121; Thu, 25 Apr 2024 05:25:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714047903; cv=pass; d=google.com; s=arc-20160816; b=eXtvHKlVLzcc7UzHa2ugjCpkhKo21/GsHxQEzN0gIJYO5xZ5LsZWLxHBfAoWzUjy5T /IWBfHjxG9X4B97vCHVo43J5HFmLQg5OLCGKrTfPb443Yf9nj5dyUZhXNVTbvQTJimxj 818PKHROuvReFCA0nlSGc4iz2NG67mY1ZR5dWHc+NLB7/n046UeMD7WxEMIj1zwOh/Tk zabEaY94rauz+ee7KoTv038ZbQtQFxuvO38+HmNsoIeLCVf/69HRSbrR4SUwjYlVSLTj HvwkQ8YY1TQsucaJTAEhL8ChI6rj7d3u2ia4QV52vV80gipCRCCgKsP3+0flQZGKIjBu OYuw== 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:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=uRbwdG+1XunRLInxSf/AH761bg3jaFbuEZ5fAcJb3TY=; fh=H4UMJDtxejWT8MoSRyTn71QzRR5CrCcXuRBwqCo5b8s=; b=Gkj07X2WBdCGbuvAQwemztk2aJ8HpTesSD5nRZMmWYH7UJo/lE/amh8ZFfd10Q06eP 5s+Ps8/aTiJ3CJ8YXri9tHC42D37B/GlmRKKmcX6rBuLWxC3jOBYFvMTPhHhPxRSEZCN +EjyFB9VdpK/ehDtL47OGDynYG2CKf18zAixwa4rQNfCNzFhMSpK2kKtfP1XlHC9cnA0 zWED///sAZDT5YrXZcdXJXwpiqALAIDXhnknj2K8ttxUT//qBLiEAYXNIOtb8kQwsBIs gYetU1EFe28gKCkA0J9TwpQ4leI3ViaaF/R9QZXE2D7MCCSfX+nLsknkCf7Pkf9xtE9Q 2zng==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=XcXZjaHA; 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-158516-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158516-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. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id mw11-20020a17090b4d0b00b002ab30c3b40dsi15454649pjb.134.2024.04.25.05.25.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 05:25:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-158516-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=XcXZjaHA; 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-158516-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158516-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 B790528656A for ; Thu, 25 Apr 2024 12:25:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 60AB812C46A; Thu, 25 Apr 2024 12:24:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="XcXZjaHA" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.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 2116112BF32 for ; Thu, 25 Apr 2024 12:24:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714047896; cv=none; b=GXQsXiwlbQDsRIPSZgA0O6f4k6GTdEZoO4CHjbRDoGhhNmDC1j8AcNgLvNrzrV5fjtZ7PljSg6l4rbHzwHCdJOrAaJ994elbtwx+q6YWfj5gnMUr8Ws3e1pH7iP5Eyg/j5sKHfu/FP/SH7vZRKcfC6fBZU0n8b5j7b7q+XszVVQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714047896; c=relaxed/simple; bh=M71qeK8Sdn8NVW2kZBFrMrpoDYzrjWTiYmyUYOxRzpc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=jWAN7H4fzyqF3shjnlbhN/8xnbFsz99Mpl3G6u163WkNWyiw6VE4e2Dh6QgXVYZmOZKUhDKPLek1WPoBKU1jE0m7fkYeAndK5k5Yrp0s1+l3sQ3jcpN57N2ZjTd95vMZJq6H+Mnx8myAtTO5t0VxyanZEkNeYp1qrpWO/LUSj2c= 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=XcXZjaHA; arc=none smtp.client-ip=170.10.129.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=1714047894; 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=uRbwdG+1XunRLInxSf/AH761bg3jaFbuEZ5fAcJb3TY=; b=XcXZjaHA/IXooJMa+Y7QNb67CbKkm/og3i2878IYY4+58FP7qDJgFBhLDC60vck6g4KQ7p bV65aUUz9G0QPA8RZxIzXNenYvmomFVRSlnRLU+X25yjlK3YuAC1eaverc4jEf0F+Rkx2O DGcdxByhTWlSQmym8/rHJpETqkn+RC4= 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-611-fbcaXE1cMpCWsRlt9eVr4g-1; Thu, 25 Apr 2024 08:24:48 -0400 X-MC-Unique: fbcaXE1cMpCWsRlt9eVr4g-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 F3252800CA2; Thu, 25 Apr 2024 12:24:47 +0000 (UTC) Received: from [10.22.17.9] (unknown [10.22.17.9]) by smtp.corp.redhat.com (Postfix) with ESMTP id 81A7040F01A; Thu, 25 Apr 2024 12:24:47 +0000 (UTC) Message-ID: Date: Thu, 25 Apr 2024 08:24:46 -0400 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 -next] cgroup/cpuset: Remove outdated comment in sched_partition_write() To: Xiu Jianfeng , lizefan.x@bytedance.com, tj@kernel.org, hannes@cmpxchg.org Cc: cgroups@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240425093016.1068567-1-xiujianfeng@huawei.com> Content-Language: en-US From: Waiman Long In-Reply-To: <20240425093016.1068567-1-xiujianfeng@huawei.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.10 On 4/25/24 05:30, Xiu Jianfeng wrote: > The comment here is outdated and can cause confusion, from the code > perspective, there’s also no need for new comment, so just remove it. > > Signed-off-by: Xiu Jianfeng > --- > kernel/cgroup/cpuset.c | 3 --- > 1 file changed, 3 deletions(-) > > diff --git a/kernel/cgroup/cpuset.c b/kernel/cgroup/cpuset.c > index f5443c039619..a10e4bd0c0c1 100644 > --- a/kernel/cgroup/cpuset.c > +++ b/kernel/cgroup/cpuset.c > @@ -3774,9 +3774,6 @@ static ssize_t sched_partition_write(struct kernfs_open_file *of, char *buf, > > buf = strstrip(buf); > > - /* > - * Convert "root" to ENABLED, and convert "member" to DISABLED. > - */ > if (!strcmp(buf, "root")) > val = PRS_ROOT; > else if (!strcmp(buf, "member")) Yes, that comment is now no longer relevant. Acked-by: Waiman Long