diff options
Diffstat (limited to 'include/linux/memcontrol.h')
-rw-r--r-- | include/linux/memcontrol.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/linux/memcontrol.h b/include/linux/memcontrol.h index bb9c079eeb0c..f82158faa494 100644 --- a/include/linux/memcontrol.h +++ b/include/linux/memcontrol.h | |||
@@ -70,6 +70,11 @@ extern void mem_cgroup_page_migration(struct page *page, struct page *newpage); | |||
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); | 71 | extern long mem_cgroup_reclaim_imbalance(struct mem_cgroup *mem); |
72 | 72 | ||
73 | extern int mem_cgroup_get_reclaim_priority(struct mem_cgroup *mem); | ||
74 | extern void mem_cgroup_note_reclaim_priority(struct mem_cgroup *mem, | ||
75 | int priority); | ||
76 | extern void mem_cgroup_record_reclaim_priority(struct mem_cgroup *mem, | ||
77 | int priority); | ||
73 | 78 | ||
74 | 79 | ||
75 | #else /* CONFIG_CGROUP_MEM_CONT */ | 80 | #else /* CONFIG_CGROUP_MEM_CONT */ |
@@ -153,6 +158,21 @@ static inline int mem_cgroup_reclaim_imbalance(struct mem_cgroup *mem) | |||
153 | return 0; | 158 | return 0; |
154 | } | 159 | } |
155 | 160 | ||
161 | static inline int mem_cgroup_get_reclaim_priority(struct mem_cgroup *mem) | ||
162 | { | ||
163 | return 0; | ||
164 | } | ||
165 | |||
166 | static inline void mem_cgroup_note_reclaim_priority(struct mem_cgroup *mem, | ||
167 | int priority) | ||
168 | { | ||
169 | } | ||
170 | |||
171 | static inline void mem_cgroup_record_reclaim_priority(struct mem_cgroup *mem, | ||
172 | int priority) | ||
173 | { | ||
174 | } | ||
175 | |||
156 | #endif /* CONFIG_CGROUP_MEM_CONT */ | 176 | #endif /* CONFIG_CGROUP_MEM_CONT */ |
157 | 177 | ||
158 | #endif /* _LINUX_MEMCONTROL_H */ | 178 | #endif /* _LINUX_MEMCONTROL_H */ |