cgroup: Avoid extra dereference in css_populate_dir()
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Tue, 12 Sep 2023 07:04:35 +0000 (12:34 +0530)
committerTejun Heo <tj@kernel.org>
Mon, 18 Sep 2023 18:58:27 +0000 (08:58 -1000)
commitd24f05987ce8bf61e62d86fedbe47523dc5c3393
tree2b8efaeb089531af2aff47f83080cea9fb23c0a6
parentfd55c0adb46a44c9a0630dc32509e4733c290103
cgroup: Avoid extra dereference in css_populate_dir()

Use css directly instead of dereferencing it from &cgroup->self, while
adding the cgroup v2 cft base and psi files in css_populate_dir(). Both
points to the same css, when css->ss is NULL, this avoids extra deferences
and makes code consistent in usage across the function.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup/cgroup.c