Received: by 2002:a05:622a:1442:b0:3a5:28ea:c4b9 with SMTP id v2csp684218qtx; Thu, 17 Nov 2022 05:27:04 -0800 (PST) X-Google-Smtp-Source: AA0mqf5U5j8nuMNJ08eAG3igkl+vEt1NOZ54mRXmlMrObLQC+fXuqNgfRAm0vf3Y+EZwzeCM/tGX X-Received: by 2002:a17:906:35d5:b0:7ad:aeda:f814 with SMTP id p21-20020a17090635d500b007adaedaf814mr2220927ejb.441.1668691624500; Thu, 17 Nov 2022 05:27:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668691624; cv=none; d=google.com; s=arc-20160816; b=svJ6U6E9BvI5RtcwPlEHsNxmmJoGlx7DHvtavi3hxepkkymFVfxnvXAIN5rsh4rrx2 AIsfHGgBXq/X24MwbidS+cJOhLDAOj8+FqeWs24F65fhHA3Fla8u9QTqeLDXV44rs4z3 0o54caTL9GhKYhZkAWdbVhsr/AnhebHPixoBTwGtpNRfgreet5leA9jud4+3pHU2JLgT uJ8UAX6uEPSi6MZBw/R3vHfN6W0+y+A4ziEtpCbwLoZLEMtqvU9YY1EwafwszUGOpJ8n yz4FJezU9FZ+tKY4rKQZbvenfMxCFmhqpSpUOLxG+9yEWshlXlJpNpKzWIVjl0p/JeDB 5/sQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=8+KNz2jWZW3hJMabpbKj/Uks1DudAWiqFYQrQhlfd2E=; b=A3AysWSfpyTihGhkRv8d0mNFhiNwU1EMSwQ7IcBnoVBXOYWuLqtNmhWF5CVlSODDoY zd9RF8/LkDeikU1EDlqPTTQBbxyY1GeT75oYN/Qqhrp0kHcydEyOys+5PvTfn3sJzPRk mgweqZx1Cs8KxYN6eYBj042e/dDOyUoEEXX0HzZeHgo9+XESiV3mH6aB4Ta9RuVBvxeM RBq3ET2z9ZaRzcFGL2mQ+20h1VOejOW8/EKDzyKe52aRUy4yBT0g2AZsFqxYyDorOwCo 4ih9qanfypqzxCdNa15OxrMgPPyvN0IXmSHhnV5LL35uGVm9j2R3M1M4pbUbjEmTLHqx 7cqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="g/Nme7GW"; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p13-20020a05640210cd00b0046272b487cesi680799edu.331.2022.11.17.05.26.42; Thu, 17 Nov 2022 05:27:04 -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=@redhat.com header.s=mimecast20190719 header.b="g/Nme7GW"; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239878AbiKQNQn (ORCPT + 92 others); Thu, 17 Nov 2022 08:16:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239884AbiKQNQh (ORCPT ); Thu, 17 Nov 2022 08:16:37 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00C9B6D48A for ; Thu, 17 Nov 2022 05:15:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1668690936; 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=8+KNz2jWZW3hJMabpbKj/Uks1DudAWiqFYQrQhlfd2E=; b=g/Nme7GWJNmvUeNDhym2xRrWVB0CVUchBNqDp7eBUoiib7mgGilbDO3xuyT2zl98vWr++U UeH8jbjkt3YmxjG3Vd+nFLxUxhQKngRTkyDRlZvkPj9yiIi1zlsEbYW0hgkU114XyRvep8 CqDWAiidp2opLdk+Bu9ckWIF/TGo4Tw= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-663-N4fdgOpWPwev7lsUORQnig-1; Thu, 17 Nov 2022 08:15:32 -0500 X-MC-Unique: N4fdgOpWPwev7lsUORQnig-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id DEC75101A528; Thu, 17 Nov 2022 13:15:31 +0000 (UTC) Received: from [10.22.16.250] (unknown [10.22.16.250]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2AC3C40C83AA; Thu, 17 Nov 2022 13:15:31 +0000 (UTC) Message-ID: <6f619bb3-e5ff-73c3-6dcb-afa64aabc729@redhat.com> Date: Thu, 17 Nov 2022 08:15:28 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.0 Subject: Re: [PATCH v2] cgroup/cpuset: Improve cpuset_css_alloc() description Content-Language: en-US To: Kamalesh Babulal , Tejun Heo , Zefan Li , Johannes Weiner Cc: cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, Tom Hromatka References: <20221117071557.165742-1-kamalesh.babulal@oracle.com> From: Waiman Long In-Reply-To: <20221117071557.165742-1-kamalesh.babulal@oracle.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.1 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=ham 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 11/17/22 02:15, Kamalesh Babulal wrote: > Change the function argument in the description of cpuset_css_alloc() > from 'struct cgroup' -> 'struct cgroup_subsys_state'. The change to the > argument type was introduced by commit eb95419b023a ("cgroup: pass > around cgroup_subsys_state instead of cgroup in subsystem methods"). > Also, add more information to its description. > > Signed-off-by: Kamalesh Babulal > --- > v2: Reworded the description to be more accurate, as suggested > by Waiman Long > > kernel/cgroup/cpuset.c | 12 ++++++++---- > 1 file changed, 8 insertions(+), 4 deletions(-) > > diff --git a/kernel/cgroup/cpuset.c b/kernel/cgroup/cpuset.c > index b474289c15b8..ce789e1b2a2f 100644 > --- a/kernel/cgroup/cpuset.c > +++ b/kernel/cgroup/cpuset.c > @@ -3046,11 +3046,15 @@ static struct cftype dfl_files[] = { > }; > > > -/* > - * cpuset_css_alloc - allocate a cpuset css > - * cgrp: control group that the new cpuset will be part of > +/** > + * cpuset_css_alloc - Allocate a cpuset css > + * @parent_css: Parent css of the control group that the new cpuset will be > + * part of > + * Return: cpuset css on success, -ENOMEM on failure. > + * > + * Allocate and initialize a new cpuset css, for non-NULL @parent_css, return > + * top cpuset css otherwise. > */ > - > static struct cgroup_subsys_state * > cpuset_css_alloc(struct cgroup_subsys_state *parent_css) > { Acked-by: Waiman Long