diff options
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/memcontrol.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/memcontrol.h b/include/linux/memcontrol.h index f944591765eb..3558a5e268cf 100644 --- a/include/linux/memcontrol.h +++ b/include/linux/memcontrol.h | |||
@@ -122,6 +122,8 @@ struct zone_reclaim_stat* | |||
122 | mem_cgroup_get_reclaim_stat_from_page(struct page *page); | 122 | mem_cgroup_get_reclaim_stat_from_page(struct page *page); |
123 | extern void mem_cgroup_print_oom_info(struct mem_cgroup *memcg, | 123 | extern void mem_cgroup_print_oom_info(struct mem_cgroup *memcg, |
124 | struct task_struct *p); | 124 | struct task_struct *p); |
125 | extern void mem_cgroup_replace_page_cache(struct page *oldpage, | ||
126 | struct page *newpage); | ||
125 | 127 | ||
126 | #ifdef CONFIG_CGROUP_MEM_RES_CTLR_SWAP | 128 | #ifdef CONFIG_CGROUP_MEM_RES_CTLR_SWAP |
127 | extern int do_swap_account; | 129 | extern int do_swap_account; |
@@ -369,6 +371,10 @@ static inline | |||
369 | void mem_cgroup_count_vm_event(struct mm_struct *mm, enum vm_event_item idx) | 371 | void mem_cgroup_count_vm_event(struct mm_struct *mm, enum vm_event_item idx) |
370 | { | 372 | { |
371 | } | 373 | } |
374 | static inline void mem_cgroup_replace_page_cache(struct page *oldpage, | ||
375 | struct page *newpage) | ||
376 | { | ||
377 | } | ||
372 | #endif /* CONFIG_CGROUP_MEM_CONT */ | 378 | #endif /* CONFIG_CGROUP_MEM_CONT */ |
373 | 379 | ||
374 | #if !defined(CONFIG_CGROUP_MEM_RES_CTLR) || !defined(CONFIG_DEBUG_VM) | 380 | #if !defined(CONFIG_CGROUP_MEM_RES_CTLR) || !defined(CONFIG_DEBUG_VM) |