diff options
Diffstat (limited to 'include/linux/memcontrol.h')
-rw-r--r-- | include/linux/memcontrol.h | 29 |
1 files changed, 27 insertions, 2 deletions
diff --git a/include/linux/memcontrol.h b/include/linux/memcontrol.h index ca51ac72d6c0..32c07b1852d6 100644 --- a/include/linux/memcontrol.h +++ b/include/linux/memcontrol.h | |||
@@ -40,7 +40,12 @@ extern void mem_cgroup_cancel_charge_swapin(struct mem_cgroup *ptr); | |||
40 | 40 | ||
41 | extern int mem_cgroup_cache_charge(struct page *page, struct mm_struct *mm, | 41 | extern int mem_cgroup_cache_charge(struct page *page, struct mm_struct *mm, |
42 | gfp_t gfp_mask); | 42 | gfp_t gfp_mask); |
43 | extern void mem_cgroup_move_lists(struct page *page, enum lru_list lru); | 43 | extern void mem_cgroup_add_lru_list(struct page *page, enum lru_list lru); |
44 | extern void mem_cgroup_del_lru_list(struct page *page, enum lru_list lru); | ||
45 | extern void mem_cgroup_rotate_lru_list(struct page *page, enum lru_list lru); | ||
46 | extern void mem_cgroup_del_lru(struct page *page); | ||
47 | extern void mem_cgroup_move_lists(struct page *page, | ||
48 | enum lru_list from, enum lru_list to); | ||
44 | extern void mem_cgroup_uncharge_page(struct page *page); | 49 | extern void mem_cgroup_uncharge_page(struct page *page); |
45 | extern void mem_cgroup_uncharge_cache_page(struct page *page); | 50 | extern void mem_cgroup_uncharge_cache_page(struct page *page); |
46 | extern int mem_cgroup_shrink_usage(struct mm_struct *mm, gfp_t gfp_mask); | 51 | extern int mem_cgroup_shrink_usage(struct mm_struct *mm, gfp_t gfp_mask); |
@@ -131,7 +136,27 @@ static inline int mem_cgroup_shrink_usage(struct mm_struct *mm, gfp_t gfp_mask) | |||
131 | return 0; | 136 | return 0; |
132 | } | 137 | } |
133 | 138 | ||
134 | static inline void mem_cgroup_move_lists(struct page *page, bool active) | 139 | static inline void mem_cgroup_add_lru_list(struct page *page, int lru) |
140 | { | ||
141 | } | ||
142 | |||
143 | static inline void mem_cgroup_del_lru_list(struct page *page, int lru) | ||
144 | { | ||
145 | return ; | ||
146 | } | ||
147 | |||
148 | static inline void mem_cgroup_rotate_lru_list(struct page *page, int lru) | ||
149 | { | ||
150 | return ; | ||
151 | } | ||
152 | |||
153 | static inline void mem_cgroup_del_lru(struct page *page) | ||
154 | { | ||
155 | return ; | ||
156 | } | ||
157 | |||
158 | static inline void | ||
159 | mem_cgroup_move_lists(struct page *page, enum lru_list from, enum lru_list to) | ||
135 | { | 160 | { |
136 | } | 161 | } |
137 | 162 | ||