diff options
| author | Tejun Heo <tj@kernel.org> | 2013-11-22 18:20:43 -0500 |
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2013-11-22 18:20:43 -0500 |
| commit | 347c4a8747104a945ecced358944e42879176ca5 (patch) | |
| tree | 86eb8e1aba61017883fff03ab1f25733c419611b /include/linux | |
| parent | fba94807837850e211f8975e1970e23e7804ff4d (diff) | |
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')
| -rw-r--r-- | include/linux/vmpressure.h | 2 |
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); | |||
| 36 | extern struct cgroup_subsys_state *vmpressure_to_css(struct vmpressure *vmpr); | 36 | extern struct cgroup_subsys_state *vmpressure_to_css(struct vmpressure *vmpr); |
| 37 | extern struct vmpressure *css_to_vmpressure(struct cgroup_subsys_state *css); | 37 | extern struct vmpressure *css_to_vmpressure(struct cgroup_subsys_state *css); |
| 38 | extern int vmpressure_register_event(struct cgroup_subsys_state *css, | 38 | extern int vmpressure_register_event(struct cgroup_subsys_state *css, |
| 39 | struct cftype *cft, | ||
| 40 | struct eventfd_ctx *eventfd, | 39 | struct eventfd_ctx *eventfd, |
| 41 | const char *args); | 40 | const char *args); |
| 42 | extern void vmpressure_unregister_event(struct cgroup_subsys_state *css, | 41 | extern void vmpressure_unregister_event(struct cgroup_subsys_state *css, |
| 43 | struct cftype *cft, | ||
| 44 | struct eventfd_ctx *eventfd); | 42 | struct eventfd_ctx *eventfd); |
| 45 | #else | 43 | #else |
| 46 | static inline void vmpressure(gfp_t gfp, struct mem_cgroup *memcg, | 44 | static inline void vmpressure(gfp_t gfp, struct mem_cgroup *memcg, |
