diff options
author | Gaosheng Cui <cuigaosheng1@huawei.com> | 2023-06-02 10:43:46 +0300 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2023-06-05 22:42:42 +0300 |
commit | 7bf11e90a30afcf79ff1acf28b01c6455799861a (patch) | |
tree | e880f3d062623303c7e329045eef6be6df238db3 /kernel/cgroup/cgroup.c | |
parent | a49a11dc6449a7e1370441bc23d83d528787066d (diff) | |
download | linux-7bf11e90a30afcf79ff1acf28b01c6455799861a.tar.xz |
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 <cuigaosheng1@huawei.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel/cgroup/cgroup.c')
-rw-r--r-- | kernel/cgroup/cgroup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/cgroup/cgroup.c b/kernel/cgroup/cgroup.c index eb3d9c1f25e3..f69e9a443ecc 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); } /** |