cgroup: fix obsolete function name in cgroup_destroy_locked()

Message ID 20230803115702.741128-1-linmiaohe@huawei.com
State New
Headers
Series cgroup: fix obsolete function name in cgroup_destroy_locked() |

Commit Message

Miaohe Lin Aug. 3, 2023, 11:57 a.m. UTC
  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>
---
 kernel/cgroup/cgroup.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Johannes Weiner Aug. 3, 2023, 2:10 p.m. UTC | #1
On Thu, Aug 03, 2023 at 07:57:02PM +0800, Miaohe Lin wrote:
> 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>
  

Patch

diff --git a/kernel/cgroup/cgroup.c b/kernel/cgroup/cgroup.c
index d620d7ec47e8..f230446598ac 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;