]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit0adb070426dde2fd0b84e7f4f5cefcd8f0b24410
treed6acf3d7e39fa838998af178ef340f1d159d2fb2
parent80b13586997d8e584caa772bd99e2a3e55ac6abe
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