From: Gaosheng Cui Date: Fri, 2 Jun 2023 07:43:46 +0000 (+0800) Subject: cgroup: Replace the css_set call with cgroup_get X-Git-Tag: v6.5-rc1~187^2~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7bf11e90a30afcf79ff1acf28b01c6455799861a;p=thirdparty%2Flinux.git cgroup: Replace the css_set call with cgroup_get We will release the refcnt of cgroup via cgroup_put, for example in the cgroup_lock_and_drain_offline function, so replace css_get with the cgroup_get function for better readability. Signed-off-by: Gaosheng Cui Signed-off-by: Tejun Heo --- diff --git a/kernel/cgroup/cgroup.c b/kernel/cgroup/cgroup.c index eb3d9c1f25e30..f69e9a443ecc3 100644 --- a/kernel/cgroup/cgroup.c +++ b/kernel/cgroup/cgroup.c @@ -619,7 +619,7 @@ EXPORT_SYMBOL_GPL(cgroup_get_e_css); static void cgroup_get_live(struct cgroup *cgrp) { WARN_ON_ONCE(cgroup_is_dead(cgrp)); - css_get(&cgrp->self); + cgroup_get(cgrp); } /**