Re: [PATCH] cgroup: remove cgrp->kn check in css_populate_dir()

From: Tejun Heo
Date: Mon Jul 17 2023 - 14:44:53 EST


On Mon, Jul 17, 2023 at 08:09:23PM +0530, Kamalesh Babulal wrote:
> cgroup_create() creates cgrp and assigns the kernfs_node to cgrp->kn,
> then cgroup_mkdir() populates base and csses cft file by calling
> css_populate_dir() and cgroup_apply_control_enable() with a valid
> cgrp->kn. Check for NULL cgrp->kn, will always be false, remove it.
>
> Signed-off-by: Kamalesh Babulal <kamalesh.babulal@xxxxxxxxxx>

Applied to cgroup/for-6.6.

Thanks.

--
tejun