diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/memcontrol.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/memcontrol.h b/include/linux/memcontrol.h index 085cdcd817b0..bb9c079eeb0c 100644 --- a/include/linux/memcontrol.h +++ b/include/linux/memcontrol.h | |||
@@ -68,6 +68,8 @@ extern void mem_cgroup_page_migration(struct page *page, struct page *newpage); | |||
68 | * For memory reclaim. | 68 | * For memory reclaim. |
69 | */ | 69 | */ |
70 | extern int mem_cgroup_calc_mapped_ratio(struct mem_cgroup *mem); | 70 | extern int mem_cgroup_calc_mapped_ratio(struct mem_cgroup *mem); |
71 | extern long mem_cgroup_reclaim_imbalance(struct mem_cgroup *mem); | ||
72 | |||
71 | 73 | ||
72 | 74 | ||
73 | #else /* CONFIG_CGROUP_MEM_CONT */ | 75 | #else /* CONFIG_CGROUP_MEM_CONT */ |
@@ -145,6 +147,12 @@ static inline int mem_cgroup_calc_mapped_ratio(struct mem_cgroup *mem) | |||
145 | { | 147 | { |
146 | return 0; | 148 | return 0; |
147 | } | 149 | } |
150 | |||
151 | static inline int mem_cgroup_reclaim_imbalance(struct mem_cgroup *mem) | ||
152 | { | ||
153 | return 0; | ||
154 | } | ||
155 | |||
148 | #endif /* CONFIG_CGROUP_MEM_CONT */ | 156 | #endif /* CONFIG_CGROUP_MEM_CONT */ |
149 | 157 | ||
150 | #endif /* _LINUX_MEMCONTROL_H */ | 158 | #endif /* _LINUX_MEMCONTROL_H */ |