cgroup: remove cgroup_subsys argument from callbacks
authorLi Zefan <lizf@cn.fujitsu.com>
Tue, 31 Jan 2012 05:47:36 +0000 (13:47 +0800)
committerTejun Heo <tj@kernel.org>
Thu, 2 Feb 2012 17:20:22 +0000 (09:20 -0800)
commit761b3ef50e1c2649cffbfa67a4dcb2dcdb7982ed
tree67ab6a9a2520811c9c0b4d70d1c19b4bfca16237
parent61d1d219c4c0761059236a46867bc49943c4d29d
cgroup: remove cgroup_subsys argument from callbacks

The argument is not used at all, and it's not necessary, because
a specific callback handler of course knows which subsys it
belongs to.

Now only ->pupulate() takes this argument, because the handlers of
this callback always call cgroup_add_file()/cgroup_add_files().

So we reduce a few lines of code, though the shrinking of object size
is minimal.

 16 files changed, 113 insertions(+), 162 deletions(-)

   text    data     bss     dec     hex filename
5486240  656987 7039960 13183187         c928d3 vmlinux.o.orig
5486170  656987 7039960 13183117         c9288d vmlinux.o

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
16 files changed:
Documentation/cgroups/cgroups.txt
block/blk-cgroup.c
include/linux/cgroup.h
include/net/sock.h
include/net/tcp_memcontrol.h
kernel/cgroup.c
kernel/cgroup_freezer.c
kernel/cpuset.c
kernel/events/core.c
kernel/sched/core.c
mm/memcontrol.c
net/core/netprio_cgroup.c
net/core/sock.c
net/ipv4/tcp_memcontrol.c
net/sched/cls_cgroup.c
security/device_cgroup.c