cgroup: implement cgroup_rm_cftypes()
commit79578621b4847afdef48d19a28d00e3b188c37e1
authorTejun Heo <tj@kernel.org>
Sun, 1 Apr 2012 19:09:56 +0000 (1 12:09 -0700)
committerTejun Heo <tj@kernel.org>
Sun, 1 Apr 2012 19:09:56 +0000 (1 12:09 -0700)
treed66c0ba245841eefa75a2f79e5cd8e2be09385eb
parent05ef1d7c4a5b6d09cadd2b8e9b3c395363d1a89c
cgroup: implement cgroup_rm_cftypes()

Implement cgroup_rm_cftypes() which removes an array of cftypes from a
subsystem.  It can be called whether the target subsys is attached or
not.  cgroup core will remove the specified file from all existing
cgroups.

This will be used to improve sub-subsys modularity and will be helpful
for unified hierarchy.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Li Zefan <lizf@cn.fujitsu.com>
include/linux/cgroup.h
kernel/cgroup.c