cgroup.c: add helper __cset_cgroup_from_root to cleanup duplicated codes
authorLin Feng <linf@wangsu.com>
Thu, 16 Jun 2022 10:38:30 +0000 (18:38 +0800)
committerTejun Heo <tj@kernel.org>
Thu, 16 Jun 2022 19:33:53 +0000 (09:33 -1000)
commite210a89f5b07680fe21d21e846e6817346c5ba3b
treea3ab30950b63ae16c5b2009dde4ec4fa50a076df
parent5f69a6577bc33d8f6d6bbe02bccdeb357b287f56
cgroup.c: add helper __cset_cgroup_from_root to cleanup duplicated codes

No funtionality change, but save us some lines.

Signed-off-by: Lin Feng <linf@wangsu.com>
Acked-by: Mukesh Ojha <quic_mojha@quicinc.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup/cgroup.c