]> git.baikalelectronics.ru Git - kernel.git/commit
memcg: remove cgroup_event->cft
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)
commit5cc08e6f6b2d16697b28ead7cf8173b0b0fbddb3
tree86eb8e1aba61017883fff03ab1f25733c419611b
parentdaec63aaa5ac58a5b637f507f5e90ebc79c55ed8
memcg: remove cgroup_event->cft

The only use of cgroup_event->cft is distinguishing "usage_in_bytes"
and "memsw.usgae_in_bytes" for mem_cgroup_usage_[un]register_event(),
which can be done by adding an explicit argument to the function and
implementing two wrappers so that the two cases can be distinguished
from the function alone.

Remove cgroup_event->cft and the related code including
[un]register_events() methods.

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