From patchwork Wed Jul 19 09:06:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miaohe Lin X-Patchwork-Id: 122472 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c923:0:b0:3e4:2afc:c1 with SMTP id j3csp2309812vqt; Wed, 19 Jul 2023 02:26:21 -0700 (PDT) X-Google-Smtp-Source: APBJJlGEWFkRuSD+wnB/+fjPdhDr/G1BFf/9Pa/z984XuItJpW3niP+FAH7F8tvVob3Z8gIoRe/6 X-Received: by 2002:a05:6a20:3205:b0:134:1aac:630a with SMTP id hl5-20020a056a20320500b001341aac630amr1971608pzc.29.1689758780707; Wed, 19 Jul 2023 02:26:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689758780; cv=none; d=google.com; s=arc-20160816; b=LmpJXYsLijOB4csQs1ON4QXV8uCbDT58DPBTDL1b/+JcIW7ki3rG9Iiwg3ld0Mw20N wBIMzGIoM6u3tvw0U9NR/JqKc5TLR+DO64bi2aIrc74c5U5lqL+wvoAJfs1B83566gYx NVPnFOq0pCmSAH+dM5FPsbXLy74drozksoTVWz47B5A5ZmF3xIqrKZ+HZwRHYevYvmEy qbu89RhBVCI1VaFtmVdQjjtETpJxyOjto/QU6Ek1MoXYSYKF1dERAyXHbFj31hodck4N bOCFbNkVG1ac9qTtiDDSa7EVsNu2gwKGxQKAPOgcDNCw3VVo6E9VLPxb9Tc+uqaQzgxd rD1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=Iz0lQcCsrpcJA441XdzYoxVPmU23dNnY8M81q2/zcac=; fh=pZWOv2pRkfQFUJ1QSi9xw43l3YtSwTmReJZNUnZfmEA=; b=cMWSmG/RqMmCDTE02pH1z+WlzODHUlB4BkX3a2jItrE/r01Qq/hilAHyZRZTcINeMw Zb3U5yiQqkHrhkqEKjX1zsLkJF7L/y1mGqWpn3HM5U/hFGfMjwQq6R6kbZK+AM5abBlO B3/rIjArDn53pUxqHk1Y5yEd3u9u/3yxHoDKjwlrs5IvlQvDsci2mQKyemUE8lORmoGg sYO6zTXh3+fO9ALGm6fqxq135dHNqSRD+9ToiqwG+oGCn/kiB0Qdp/ocO7KzzA2+bojG BstxZhTRzUopFYJdGII7NXhBLtTapmjPdDgqmbxXCjVf8mP+s1Wnc3B1sQJB9VoZtW4M c5jA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ko11-20020a17090307cb00b001bb12009a14si3140563plb.338.2023.07.19.02.26.04; Wed, 19 Jul 2023 02:26:20 -0700 (PDT) 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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229670AbjGSJHj (ORCPT + 99 others); Wed, 19 Jul 2023 05:07:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229809AbjGSJHf (ORCPT ); Wed, 19 Jul 2023 05:07:35 -0400 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16FB02712; Wed, 19 Jul 2023 02:07:11 -0700 (PDT) Received: from canpemm500002.china.huawei.com (unknown [172.30.72.57]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4R5VHX3yywzLnrT; Wed, 19 Jul 2023 17:04:08 +0800 (CST) Received: from huawei.com (10.174.151.185) by canpemm500002.china.huawei.com (7.192.104.244) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Wed, 19 Jul 2023 17:06:35 +0800 From: Miaohe Lin To: , , CC: , , Subject: [PATCH] cgroup: fix obsolete comment above cgroup_create() Date: Wed, 19 Jul 2023 17:06:40 +0800 Message-ID: <20230719090640.2568600-1-linmiaohe@huawei.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 X-Originating-IP: [10.174.151.185] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To canpemm500002.china.huawei.com (7.192.104.244) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771840503295960558 X-GMAIL-MSGID: 1771840503295960558 Since commit 743210386c03 ("cgroup: use cgrp->kn->id as the cgroup ID"), cgrp is associated with its kernfs_node. Update corresponding comment. Signed-off-by: Miaohe Lin --- kernel/cgroup/cgroup.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kernel/cgroup/cgroup.c b/kernel/cgroup/cgroup.c index 40ee81f982ff..44bf9e3ffb8a 100644 --- a/kernel/cgroup/cgroup.c +++ b/kernel/cgroup/cgroup.c @@ -5544,8 +5544,7 @@ static struct cgroup_subsys_state *css_create(struct cgroup *cgrp, /* * The returned cgroup is fully initialized including its control mask, but - * it isn't associated with its kernfs_node and doesn't have the control - * mask applied. + * it doesn't have the control mask applied. */ static struct cgroup *cgroup_create(struct cgroup *parent, const char *name, umode_t mode)