]> git.baikalelectronics.ru Git - kernel.git/commit
cgroup: relocate cftype and cgroup_subsys definitions in controllers
authorTejun Heo <tj@kernel.org>
Sun, 1 Apr 2012 19:09:55 +0000 (12:09 -0700)
committerTejun Heo <tj@kernel.org>
Sun, 1 Apr 2012 19:09:55 +0000 (12:09 -0700)
commitf1d4f19cc8983913fd1f2e8000e5b0e19b07f81c
tree29c267a4c5711f9eaca7fa88fd7a78d39c8c4eac
parent1eaa9ae9dc110df0bc85b4e0544f36e0be025079
cgroup: relocate cftype and cgroup_subsys definitions in controllers

blk-cgroup, netprio_cgroup, cls_cgroup and tcp_memcontrol
unnecessarily define cftype array and cgroup_subsys structures at the
top of the file, which is unconventional and necessiates forward
declaration of methods.

This patch relocates those below the definitions of the methods and
removes the forward declarations.  Note that forward declaration of
tcp_files[] is added in tcp_memcontrol.c for tcp_init_cgroup().  This
will be removed soon by another patch.

This patch doesn't introduce any functional change.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Li Zefan <lizf@cn.fujitsu.com>
block/blk-cgroup.c
net/core/netprio_cgroup.c
net/ipv4/tcp_memcontrol.c
net/sched/cls_cgroup.c