]> git.baikalelectronics.ru Git - kernel.git/commit
cgroup: separate out interface file creation from css creation
authorTejun Heo <tj@kernel.org>
Thu, 3 Mar 2016 14:57:58 +0000 (09:57 -0500)
committerTejun Heo <tj@kernel.org>
Thu, 3 Mar 2016 14:57:58 +0000 (09:57 -0500)
commitf02b280c6e7c10c376ff37c79d3c17fcd77b8018
tree425f8c38aeb24e944d2a0fac9b59b075e396d509
parent1daf3671e8dcb457081fab730c323ce240cc98f7
cgroup: separate out interface file creation from css creation

Currently, interface files are created when a css is created depending
on whether @visible is set.  This patch separates out the two into
separate steps to help code refactoring and eventually allow cgroups
which aren't visible through cgroup fs.

Move css_populate_dir() out of create_css() and drop @visible.  While
at it, rename the function to css_create() for consistency.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Zefan Li <lizefan@huawei.com>
kernel/cgroup.c