summaryrefslogtreecommitdiff
path: root/include/linux/vmpressure.h
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2013-11-23 03:20:43 +0400
committerTejun Heo <tj@kernel.org>2013-11-23 03:20:43 +0400
commit347c4a8747104a945ecced358944e42879176ca5 (patch)
tree86eb8e1aba61017883fff03ab1f25733c419611b /include/linux/vmpressure.h
parentfba94807837850e211f8975e1970e23e7804ff4d (diff)
downloadlinux-347c4a8747104a945ecced358944e42879176ca5.tar.xz
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>
Diffstat (limited to 'include/linux/vmpressure.h')
-rw-r--r--include/linux/vmpressure.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/linux/vmpressure.h b/include/linux/vmpressure.h
index 9dd1914f1a6c..b048365a7ed9 100644
--- a/include/linux/vmpressure.h
+++ b/include/linux/vmpressure.h
@@ -36,11 +36,9 @@ extern struct vmpressure *memcg_to_vmpressure(struct mem_cgroup *memcg);
extern struct cgroup_subsys_state *vmpressure_to_css(struct vmpressure *vmpr);
extern struct vmpressure *css_to_vmpressure(struct cgroup_subsys_state *css);
extern int vmpressure_register_event(struct cgroup_subsys_state *css,
- struct cftype *cft,
struct eventfd_ctx *eventfd,
const char *args);
extern void vmpressure_unregister_event(struct cgroup_subsys_state *css,
- struct cftype *cft,
struct eventfd_ctx *eventfd);
#else
static inline void vmpressure(gfp_t gfp, struct mem_cgroup *memcg,