diff options
Diffstat (limited to 'include/linux/memcontrol.h')
-rw-r--r-- | include/linux/memcontrol.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/memcontrol.h b/include/linux/memcontrol.h index 9bbbf524ba8f..bb6f5105401b 100644 --- a/include/linux/memcontrol.h +++ b/include/linux/memcontrol.h | |||
@@ -22,6 +22,8 @@ | |||
22 | 22 | ||
23 | struct mem_cgroup; | 23 | struct mem_cgroup; |
24 | struct page_cgroup; | 24 | struct page_cgroup; |
25 | struct page; | ||
26 | struct mm_struct; | ||
25 | 27 | ||
26 | #ifdef CONFIG_CGROUP_MEM_CONT | 28 | #ifdef CONFIG_CGROUP_MEM_CONT |
27 | 29 | ||
@@ -40,6 +42,7 @@ extern unsigned long mem_cgroup_isolate_pages(unsigned long nr_to_scan, | |||
40 | struct mem_cgroup *mem_cont, | 42 | struct mem_cgroup *mem_cont, |
41 | int active); | 43 | int active); |
42 | extern void mem_cgroup_out_of_memory(struct mem_cgroup *mem, gfp_t gfp_mask); | 44 | extern void mem_cgroup_out_of_memory(struct mem_cgroup *mem, gfp_t gfp_mask); |
45 | extern int mem_cgroup_cache_charge(struct page *page, struct mm_struct *mm); | ||
43 | 46 | ||
44 | static inline void mem_cgroup_uncharge_page(struct page *page) | 47 | static inline void mem_cgroup_uncharge_page(struct page *page) |
45 | { | 48 | { |
@@ -84,6 +87,12 @@ static inline void mem_cgroup_move_lists(struct page_cgroup *pc, | |||
84 | { | 87 | { |
85 | } | 88 | } |
86 | 89 | ||
90 | static inline int mem_cgroup_cache_charge(struct page *page, | ||
91 | struct mm_struct *mm) | ||
92 | { | ||
93 | return 0; | ||
94 | } | ||
95 | |||
87 | #endif /* CONFIG_CGROUP_MEM_CONT */ | 96 | #endif /* CONFIG_CGROUP_MEM_CONT */ |
88 | 97 | ||
89 | #endif /* _LINUX_MEMCONTROL_H */ | 98 | #endif /* _LINUX_MEMCONTROL_H */ |