aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/memcontrol.h10
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,
35extern int mem_cgroup_cache_charge(struct page *page, struct mm_struct *mm, 35extern int mem_cgroup_cache_charge(struct page *page, struct mm_struct *mm,
36 gfp_t gfp_mask); 36 gfp_t gfp_mask);
37extern void mem_cgroup_uncharge_page(struct page *page); 37extern void mem_cgroup_uncharge_page(struct page *page);
38extern void mem_cgroup_uncharge_cache_page(struct page *page);
38extern void mem_cgroup_move_lists(struct page *page, bool active); 39extern void mem_cgroup_move_lists(struct page *page, bool active);
39extern unsigned long mem_cgroup_isolate_pages(unsigned long nr_to_scan, 40extern 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);
53extern int 54extern int
54mem_cgroup_prepare_migration(struct page *page, struct page *newpage); 55mem_cgroup_prepare_migration(struct page *page, struct page *newpage);
55extern void mem_cgroup_end_migration(struct page *page); 56extern void mem_cgroup_end_migration(struct page *page);
56extern 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
101static inline void mem_cgroup_uncharge_cache_page(struct page *page)
102{
103}
104
101static inline void mem_cgroup_move_lists(struct page *page, bool active) 105static 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
126static inline void mem_cgroup_getref(struct page *page)
127{
128}
129
130static inline int mem_cgroup_calc_mapped_ratio(struct mem_cgroup *mem) 130static inline int mem_cgroup_calc_mapped_ratio(struct mem_cgroup *mem)
131{ 131{
132 return 0; 132 return 0;