aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/memcontrol.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/memcontrol.h')
-rw-r--r--include/linux/memcontrol.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/memcontrol.h b/include/linux/memcontrol.h
index 9f1afd361583..73564cac38c7 100644
--- a/include/linux/memcontrol.h
+++ b/include/linux/memcontrol.h
@@ -125,6 +125,8 @@ void mem_cgroup_update_file_mapped(struct page *page, int val);
125unsigned long mem_cgroup_soft_limit_reclaim(struct zone *zone, int order, 125unsigned long mem_cgroup_soft_limit_reclaim(struct zone *zone, int order,
126 gfp_t gfp_mask, int nid, 126 gfp_t gfp_mask, int nid,
127 int zid); 127 int zid);
128u64 mem_cgroup_get_limit(struct mem_cgroup *mem);
129
128#else /* CONFIG_CGROUP_MEM_RES_CTLR */ 130#else /* CONFIG_CGROUP_MEM_RES_CTLR */
129struct mem_cgroup; 131struct mem_cgroup;
130 132
@@ -304,6 +306,12 @@ unsigned long mem_cgroup_soft_limit_reclaim(struct zone *zone, int order,
304 return 0; 306 return 0;
305} 307}
306 308
309static inline
310u64 mem_cgroup_get_limit(struct mem_cgroup *mem)
311{
312 return 0;
313}
314
307#endif /* CONFIG_CGROUP_MEM_CONT */ 315#endif /* CONFIG_CGROUP_MEM_CONT */
308 316
309#endif /* _LINUX_MEMCONTROL_H */ 317#endif /* _LINUX_MEMCONTROL_H */