diff options
Diffstat (limited to 'include/linux/memcontrol.h')
| -rw-r--r-- | include/linux/memcontrol.h | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/include/linux/memcontrol.h b/include/linux/memcontrol.h index 326f45c86530..18146c980b68 100644 --- a/include/linux/memcontrol.h +++ b/include/linux/memcontrol.h | |||
| @@ -88,9 +88,6 @@ extern void mem_cgroup_end_migration(struct mem_cgroup *mem, | |||
| 88 | /* | 88 | /* |
| 89 | * For memory reclaim. | 89 | * For memory reclaim. |
| 90 | */ | 90 | */ |
| 91 | extern int mem_cgroup_calc_mapped_ratio(struct mem_cgroup *mem); | ||
| 92 | extern long mem_cgroup_reclaim_imbalance(struct mem_cgroup *mem); | ||
| 93 | |||
| 94 | extern int mem_cgroup_get_reclaim_priority(struct mem_cgroup *mem); | 91 | extern int mem_cgroup_get_reclaim_priority(struct mem_cgroup *mem); |
| 95 | extern void mem_cgroup_note_reclaim_priority(struct mem_cgroup *mem, | 92 | extern void mem_cgroup_note_reclaim_priority(struct mem_cgroup *mem, |
| 96 | int priority); | 93 | int priority); |
| @@ -104,6 +101,8 @@ struct zone_reclaim_stat *mem_cgroup_get_reclaim_stat(struct mem_cgroup *memcg, | |||
| 104 | struct zone *zone); | 101 | struct zone *zone); |
| 105 | struct zone_reclaim_stat* | 102 | struct zone_reclaim_stat* |
| 106 | mem_cgroup_get_reclaim_stat_from_page(struct page *page); | 103 | mem_cgroup_get_reclaim_stat_from_page(struct page *page); |
| 104 | extern void mem_cgroup_print_oom_info(struct mem_cgroup *memcg, | ||
| 105 | struct task_struct *p); | ||
| 107 | 106 | ||
| 108 | #ifdef CONFIG_CGROUP_MEM_RES_CTLR_SWAP | 107 | #ifdef CONFIG_CGROUP_MEM_RES_CTLR_SWAP |
| 109 | extern int do_swap_account; | 108 | extern int do_swap_account; |
| @@ -209,16 +208,6 @@ static inline void mem_cgroup_end_migration(struct mem_cgroup *mem, | |||
| 209 | { | 208 | { |
| 210 | } | 209 | } |
| 211 | 210 | ||
| 212 | static inline int mem_cgroup_calc_mapped_ratio(struct mem_cgroup *mem) | ||
| 213 | { | ||
| 214 | return 0; | ||
| 215 | } | ||
| 216 | |||
| 217 | static inline int mem_cgroup_reclaim_imbalance(struct mem_cgroup *mem) | ||
| 218 | { | ||
| 219 | return 0; | ||
| 220 | } | ||
| 221 | |||
| 222 | static inline int mem_cgroup_get_reclaim_priority(struct mem_cgroup *mem) | 211 | static inline int mem_cgroup_get_reclaim_priority(struct mem_cgroup *mem) |
| 223 | { | 212 | { |
| 224 | return 0; | 213 | return 0; |
| @@ -270,6 +259,11 @@ mem_cgroup_get_reclaim_stat_from_page(struct page *page) | |||
| 270 | return NULL; | 259 | return NULL; |
| 271 | } | 260 | } |
| 272 | 261 | ||
| 262 | static inline void | ||
| 263 | mem_cgroup_print_oom_info(struct mem_cgroup *memcg, struct task_struct *p) | ||
| 264 | { | ||
| 265 | } | ||
| 266 | |||
| 273 | #endif /* CONFIG_CGROUP_MEM_CONT */ | 267 | #endif /* CONFIG_CGROUP_MEM_CONT */ |
| 274 | 268 | ||
| 275 | #endif /* _LINUX_MEMCONTROL_H */ | 269 | #endif /* _LINUX_MEMCONTROL_H */ |
