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)
commit6cd0f5bbaf594f40a97d01dbc565dda41f30d37c
tree425f8c38aeb24e944d2a0fac9b59b075e396d509
parent20b454a61fba59be13de52b4493898583ea26d20
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