diff options
Diffstat (limited to 'include/linux/memcontrol.h')
-rw-r--r-- | include/linux/memcontrol.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/memcontrol.h b/include/linux/memcontrol.h index f5b47efab48b..9c3c1c97c197 100644 --- a/include/linux/memcontrol.h +++ b/include/linux/memcontrol.h | |||
@@ -32,6 +32,13 @@ extern void page_assign_page_cgroup(struct page *page, | |||
32 | extern struct page_cgroup *page_get_page_cgroup(struct page *page); | 32 | extern struct page_cgroup *page_get_page_cgroup(struct page *page); |
33 | extern int mem_cgroup_charge(struct page *page, struct mm_struct *mm); | 33 | extern int mem_cgroup_charge(struct page *page, struct mm_struct *mm); |
34 | extern void mem_cgroup_uncharge(struct page_cgroup *pc); | 34 | extern void mem_cgroup_uncharge(struct page_cgroup *pc); |
35 | extern void mem_cgroup_move_lists(struct page_cgroup *pc, bool active); | ||
36 | extern unsigned long mem_cgroup_isolate_pages(unsigned long nr_to_scan, | ||
37 | struct list_head *dst, | ||
38 | unsigned long *scanned, int order, | ||
39 | int mode, struct zone *z, | ||
40 | struct mem_cgroup *mem_cont, | ||
41 | int active); | ||
35 | 42 | ||
36 | static inline void mem_cgroup_uncharge_page(struct page *page) | 43 | static inline void mem_cgroup_uncharge_page(struct page *page) |
37 | { | 44 | { |
@@ -71,6 +78,11 @@ static inline void mem_cgroup_uncharge_page(struct page *page) | |||
71 | { | 78 | { |
72 | } | 79 | } |
73 | 80 | ||
81 | static inline void mem_cgroup_move_lists(struct page_cgroup *pc, | ||
82 | bool active) | ||
83 | { | ||
84 | } | ||
85 | |||
74 | #endif /* CONFIG_CGROUP_MEM_CONT */ | 86 | #endif /* CONFIG_CGROUP_MEM_CONT */ |
75 | 87 | ||
76 | #endif /* _LINUX_MEMCONTROL_H */ | 88 | #endif /* _LINUX_MEMCONTROL_H */ |