summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiaohe Lin <linmiaohe@huawei.com>2023-07-19 17:06:40 +0800
committerTejun Heo <tj@kernel.org>2023-07-21 09:54:48 -1000
commita3fdeeb3f1c1fad3b7b07aa96a7e422fde3c2c15 (patch)
tree1f9011fa40f38797b5e6a26948ce375d962e12f4
parentab8aebdc9f7b9e2768c8a5776d028f4a10d05c4b (diff)
downloadlinux-stable-a3fdeeb3f1c1fad3b7b07aa96a7e422fde3c2c15.tar.gz
linux-stable-a3fdeeb3f1c1fad3b7b07aa96a7e422fde3c2c15.tar.bz2
linux-stable-a3fdeeb3f1c1fad3b7b07aa96a7e422fde3c2c15.zip
cgroup: fix obsolete comment above cgroup_create()
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 <linmiaohe@huawei.com> Signed-off-by: Tejun Heo <tj@kernel.org>
-rw-r--r--kernel/cgroup/cgroup.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/cgroup/cgroup.c b/kernel/cgroup/cgroup.c
index 3c1bb9ecea10..c7aafb59ecf2 100644
--- a/kernel/cgroup/cgroup.c
+++ b/kernel/cgroup/cgroup.c
@@ -5545,8 +5545,7 @@ err_free_css:
/*
* 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)