]> www.infradead.org Git - users/jedix/linux-maple.git/commit
kernel/cgroup: cleanup cgroup_base_files when fail to add cgroup_psi_files
authorDavid Wang <00107082@163.com>
Fri, 17 May 2024 06:24:05 +0000 (14:24 +0800)
committerTejun Heo <tj@kernel.org>
Sun, 26 May 2024 18:48:11 +0000 (08:48 -1000)
commita8d55ff5f3acf52e6380976fb5d0a9172032dcb0
treee8cf6b75117715a88c4dd087a700e5706dbd1773
parent9f34c566027b623854dabc86fde052b44e5240be
kernel/cgroup: cleanup cgroup_base_files when fail to add cgroup_psi_files

Even though css_clear_dir would be called to cleanup
all existing cgroup files when css_populate_dir failed,
reclaiming newly created cgroup files before
css_populate_dir returns with failure makes code more
consistent.

Signed-off-by: David Wang <00107082@163.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup/cgroup.c