]> 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)
commitab4bbc9f7c50dc2d068a4757a533fff9437cc0ef
tree425f8c38aeb24e944d2a0fac9b59b075e396d509
parent9217d9030308b30295e721d2d952ef2a0a590a17
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