]> git.baikalelectronics.ru Git - kernel.git/commit
cgroup: remove cftype_set
authorTejun Heo <tj@kernel.org>
Wed, 12 Feb 2014 14:29:48 +0000 (09:29 -0500)
committerTejun Heo <tj@kernel.org>
Wed, 12 Feb 2014 14:29:48 +0000 (09:29 -0500)
commit2408ad5e24587c0b5d0efea0e35c0fab86615425
treed6acf3d7e39fa838998af178ef340f1d159d2fb2
parentfa0ae1072df20347eb0839e01472a9615161544a
cgroup: remove cftype_set

cftype_set was added primarily to allow registering the same cftype
array more than once for different subsystems.  Nobody uses or needs
such thing and it's already broken because each cftype has ->ss
pointer which is initialized during registration.

Let's add list_head ->node to cftype and use the first cftype entry in
the array to link them instead of allocating separate cftype_set.
While at it, trigger WARN if cft seems previously initialized during
registration.

This simplifies cftype handling a bit.

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