]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
cgroup: convert memcg controller to the new cftype interface
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)
commit6bc103498f5fe512928496fc7802d639cc2d1d20
tree15a9628ff89b48889ab7cf81822d689e0173ca2b
parentaf36f906c0f4c2ffa0482ecdf856a33dc88ae8c5
cgroup: convert memcg controller to the new cftype interface

Convert memcg to use the new cftype based interface.  kmem support
abuses ->populate() for mem_cgroup_sockets_init() so it can't be
removed at the moment.

tcp_memcontrol is updated so that tcp_files[] is registered via a
__initcall.  This change also allows removing the forward declaration
of tcp_files[].  Removed.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Acked-by: Li Zefan <lizf@cn.fujitsu.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Michal Hocko <mhocko@suse.cz>
Cc: Balbir Singh <bsingharora@gmail.com>
Cc: Glauber Costa <glommer@parallels.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: Greg Thelen <gthelen@google.com>
mm/memcontrol.c
net/ipv4/tcp_memcontrol.c