aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/memcontrol.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/linux/memcontrol.h b/include/linux/memcontrol.h
index b1defd6a278..36b8ebb39b8 100644
--- a/include/linux/memcontrol.h
+++ b/include/linux/memcontrol.h
@@ -105,6 +105,10 @@ int mem_cgroup_inactive_anon_is_low(struct mem_cgroup *memcg,
105unsigned long mem_cgroup_zone_nr_pages(struct mem_cgroup *memcg, 105unsigned long mem_cgroup_zone_nr_pages(struct mem_cgroup *memcg,
106 struct zone *zone, 106 struct zone *zone,
107 enum lru_list lru); 107 enum lru_list lru);
108struct zone_reclaim_stat *mem_cgroup_get_reclaim_stat(struct mem_cgroup *memcg,
109 struct zone *zone);
110struct zone_reclaim_stat*
111mem_cgroup_get_reclaim_stat_from_page(struct page *page);
108 112
109#ifdef CONFIG_CGROUP_MEM_RES_CTLR_SWAP 113#ifdef CONFIG_CGROUP_MEM_RES_CTLR_SWAP
110extern int do_swap_account; 114extern int do_swap_account;
@@ -271,6 +275,18 @@ mem_cgroup_zone_nr_pages(struct mem_cgroup *memcg, struct zone *zone,
271} 275}
272 276
273 277
278static inline struct zone_reclaim_stat*
279mem_cgroup_get_reclaim_stat(struct mem_cgroup *memcg, struct zone *zone)
280{
281 return NULL;
282}
283
284static inline struct zone_reclaim_stat*
285mem_cgroup_get_reclaim_stat_from_page(struct page *page)
286{
287 return NULL;
288}
289
274#endif /* CONFIG_CGROUP_MEM_CONT */ 290#endif /* CONFIG_CGROUP_MEM_CONT */
275 291
276#endif /* _LINUX_MEMCONTROL_H */ 292#endif /* _LINUX_MEMCONTROL_H */