cgroup: Replace the css_set call with cgroup_get
authorGaosheng Cui <cuigaosheng1@huawei.com>
Fri, 2 Jun 2023 07:43:46 +0000 (15:43 +0800)
committerTejun Heo <tj@kernel.org>
Mon, 5 Jun 2023 19:42:42 +0000 (09:42 -1000)
commit7bf11e90a30afcf79ff1acf28b01c6455799861a
treee880f3d062623303c7e329045eef6be6df238db3
parenta49a11dc6449a7e1370441bc23d83d528787066d
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>
kernel/cgroup/cgroup.c