diff options
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/memcontrol.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/linux/memcontrol.h b/include/linux/memcontrol.h index 84ead2aa6f18..b4980b8f048e 100644 --- a/include/linux/memcontrol.h +++ b/include/linux/memcontrol.h | |||
@@ -35,6 +35,7 @@ extern int mem_cgroup_charge(struct page *page, struct mm_struct *mm, | |||
35 | extern int mem_cgroup_cache_charge(struct page *page, struct mm_struct *mm, | 35 | extern int mem_cgroup_cache_charge(struct page *page, struct mm_struct *mm, |
36 | gfp_t gfp_mask); | 36 | gfp_t gfp_mask); |
37 | extern void mem_cgroup_uncharge_page(struct page *page); | 37 | extern void mem_cgroup_uncharge_page(struct page *page); |
38 | extern void mem_cgroup_uncharge_cache_page(struct page *page); | ||
38 | extern void mem_cgroup_move_lists(struct page *page, bool active); | 39 | extern void mem_cgroup_move_lists(struct page *page, bool active); |
39 | extern unsigned long mem_cgroup_isolate_pages(unsigned long nr_to_scan, | 40 | extern unsigned long mem_cgroup_isolate_pages(unsigned long nr_to_scan, |
40 | struct list_head *dst, | 41 | struct list_head *dst, |
@@ -53,7 +54,6 @@ extern struct mem_cgroup *mem_cgroup_from_task(struct task_struct *p); | |||
53 | extern int | 54 | extern int |
54 | mem_cgroup_prepare_migration(struct page *page, struct page *newpage); | 55 | mem_cgroup_prepare_migration(struct page *page, struct page *newpage); |
55 | extern void mem_cgroup_end_migration(struct page *page); | 56 | extern void mem_cgroup_end_migration(struct page *page); |
56 | extern int mem_cgroup_getref(struct page *page); | ||
57 | 57 | ||
58 | /* | 58 | /* |
59 | * For memory reclaim. | 59 | * For memory reclaim. |
@@ -98,6 +98,10 @@ static inline void mem_cgroup_uncharge_page(struct page *page) | |||
98 | { | 98 | { |
99 | } | 99 | } |
100 | 100 | ||
101 | static inline void mem_cgroup_uncharge_cache_page(struct page *page) | ||
102 | { | ||
103 | } | ||
104 | |||
101 | static inline void mem_cgroup_move_lists(struct page *page, bool active) | 105 | static inline void mem_cgroup_move_lists(struct page *page, bool active) |
102 | { | 106 | { |
103 | } | 107 | } |
@@ -123,10 +127,6 @@ static inline void mem_cgroup_end_migration(struct page *page) | |||
123 | { | 127 | { |
124 | } | 128 | } |
125 | 129 | ||
126 | static inline void mem_cgroup_getref(struct page *page) | ||
127 | { | ||
128 | } | ||
129 | |||
130 | static inline int mem_cgroup_calc_mapped_ratio(struct mem_cgroup *mem) | 130 | static inline int mem_cgroup_calc_mapped_ratio(struct mem_cgroup *mem) |
131 | { | 131 | { |
132 | return 0; | 132 | return 0; |