aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/memcontrol.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/memcontrol.h b/include/linux/memcontrol.h
index 59ac95a64508..aad9377c9828 100644
--- a/include/linux/memcontrol.h
+++ b/include/linux/memcontrol.h
@@ -100,6 +100,8 @@ extern void mem_cgroup_record_reclaim_priority(struct mem_cgroup *mem,
100 100
101extern long mem_cgroup_calc_reclaim(struct mem_cgroup *mem, struct zone *zone, 101extern long mem_cgroup_calc_reclaim(struct mem_cgroup *mem, struct zone *zone,
102 int priority, enum lru_list lru); 102 int priority, enum lru_list lru);
103int mem_cgroup_inactive_anon_is_low(struct mem_cgroup *memcg,
104 struct zone *zone);
103 105
104#ifdef CONFIG_CGROUP_MEM_RES_CTLR_SWAP 106#ifdef CONFIG_CGROUP_MEM_RES_CTLR_SWAP
105extern int do_swap_account; 107extern int do_swap_account;
@@ -251,6 +253,13 @@ static inline bool mem_cgroup_oom_called(struct task_struct *task)
251{ 253{
252 return false; 254 return false;
253} 255}
256
257static inline int
258mem_cgroup_inactive_anon_is_low(struct mem_cgroup *memcg, struct zone *zone)
259{
260 return 1;
261}
262
254#endif /* CONFIG_CGROUP_MEM_CONT */ 263#endif /* CONFIG_CGROUP_MEM_CONT */
255 264
256#endif /* _LINUX_MEMCONTROL_H */ 265#endif /* _LINUX_MEMCONTROL_H */