summaryrefslogtreecommitdiffstats
path: root/kernel/cgroup/cgroup.c
diff options
context:
space:
mode:
authorMiaohe Lin <linmiaohe@huawei.com>2023-08-03 13:57:02 +0200
committerTejun Heo <tj@kernel.org>2023-08-04 02:13:33 +0200
commit7f828eacc4bbfd3ceea8ea17051858262fe04122 (patch)
tree3663ef3369a9ddff8209d00e617c4b313b1ad0dd /kernel/cgroup/cgroup.c
parentDocumentation: cgroup-v2.rst: Correct number of stats entries (diff)
downloadlinux-7f828eacc4bbfd3ceea8ea17051858262fe04122.tar.xz
linux-7f828eacc4bbfd3ceea8ea17051858262fe04122.zip
cgroup: fix obsolete function name in cgroup_destroy_locked()
Since commit e76ecaeef65c ("cgroup: use cgroup_kn_lock_live() in other cgroup kernfs methods"), cgroup_kn_lock_live() is used in cgroup kernfs methods. Update corresponding comment. Signed-off-by: Miaohe Lin <linmiaohe@huawei.com> Acked-by: Johannes Weiner <hannes@cmpxchg.org> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel/cgroup/cgroup.c')
-rw-r--r--kernel/cgroup/cgroup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/cgroup/cgroup.c b/kernel/cgroup/cgroup.c
index f9cde56cf947..85e723abd9e2 100644
--- a/kernel/cgroup/cgroup.c
+++ b/kernel/cgroup/cgroup.c
@@ -5871,7 +5871,7 @@ static int cgroup_destroy_locked(struct cgroup *cgrp)
/*
* Mark @cgrp and the associated csets dead. The former prevents
* further task migration and child creation by disabling
- * cgroup_lock_live_group(). The latter makes the csets ignored by
+ * cgroup_kn_lock_live(). The latter makes the csets ignored by
* the migration path.
*/
cgrp->self.flags &= ~CSS_ONLINE;