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>
Showing
- Documentation/cgroups/cgroups.txt 11 additions, 15 deletionsDocumentation/cgroups/cgroups.txt
- block/blk-cgroup.c 8 additions, 14 deletionsblock/blk-cgroup.c
- include/linux/cgroup.h 12 additions, 17 deletionsinclude/linux/cgroup.h
- include/net/sock.h 3 additions, 4 deletionsinclude/net/sock.h
- include/net/tcp_memcontrol.h 1 addition, 1 deletioninclude/net/tcp_memcontrol.h
- kernel/cgroup.c 21 additions, 22 deletionskernel/cgroup.c
- kernel/cgroup_freezer.c 4 additions, 7 deletionskernel/cgroup_freezer.c
- kernel/cpuset.c 5 additions, 11 deletionskernel/cpuset.c
- kernel/events/core.c 5 additions, 8 deletionskernel/events/core.c
- kernel/sched/core.c 8 additions, 12 deletionskernel/sched/core.c
- mm/memcontrol.c 19 additions, 29 deletionsmm/memcontrol.c
- net/core/netprio_cgroup.c 4 additions, 6 deletionsnet/core/netprio_cgroup.c
- net/core/sock.c 3 additions, 3 deletionsnet/core/sock.c
- net/ipv4/tcp_memcontrol.c 1 addition, 1 deletionnet/ipv4/tcp_memcontrol.c
- net/sched/cls_cgroup.c 4 additions, 6 deletionsnet/sched/cls_cgroup.c
- security/device_cgroup.c 4 additions, 6 deletionssecurity/device_cgroup.c
Loading
Please register or sign in to comment