memcg: make cgroup_event deal with mem_cgroup instead of cgroup_subsys_state
authorTejun Heo <tj@kernel.org>
Fri, 22 Nov 2013 23:20:43 +0000 (18:20 -0500)
committerTejun Heo <tj@kernel.org>
Fri, 22 Nov 2013 23:20:43 +0000 (18:20 -0500)
commit59b6f87344ab5eb3057e5844b8cd8a39e668f477
tree889411e1dd5023e63dfbd723e770669824c5072d
parent347c4a8747104a945ecced358944e42879176ca5
memcg: make cgroup_event deal with mem_cgroup instead of cgroup_subsys_state

cgroup_event is now memcg specific.  Replace cgroup_event->css with
->memcg and convert [un]register_event() callbacks to take mem_cgroup
pointer instead of cgroup_subsys_state one.  This simplifies the code
slightly and makes css_to_vmpressure() unnecessary which is removed.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Li Zefan <lizefan@huawei.com>
Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Acked-by: Michal Hocko <mhocko@suse.cz>
include/linux/vmpressure.h
mm/memcontrol.c
mm/vmpressure.c