aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/memcontrol.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/memcontrol.h')
-rw-r--r--include/linux/memcontrol.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/include/linux/memcontrol.h b/include/linux/memcontrol.h
index 9d0a830423b6..cc0ad7191acd 100644
--- a/include/linux/memcontrol.h
+++ b/include/linux/memcontrol.h
@@ -32,7 +32,8 @@ extern void mm_free_cgroup(struct mm_struct *mm);
32extern void page_assign_page_cgroup(struct page *page, 32extern void page_assign_page_cgroup(struct page *page,
33 struct page_cgroup *pc); 33 struct page_cgroup *pc);
34extern struct page_cgroup *page_get_page_cgroup(struct page *page); 34extern struct page_cgroup *page_get_page_cgroup(struct page *page);
35extern int mem_cgroup_charge(struct page *page, struct mm_struct *mm); 35extern int mem_cgroup_charge(struct page *page, struct mm_struct *mm,
36 gfp_t gfp_mask);
36extern void mem_cgroup_uncharge(struct page_cgroup *pc); 37extern void mem_cgroup_uncharge(struct page_cgroup *pc);
37extern void mem_cgroup_move_lists(struct page_cgroup *pc, bool active); 38extern void mem_cgroup_move_lists(struct page_cgroup *pc, bool active);
38extern unsigned long mem_cgroup_isolate_pages(unsigned long nr_to_scan, 39extern unsigned long mem_cgroup_isolate_pages(unsigned long nr_to_scan,
@@ -42,7 +43,8 @@ extern unsigned long mem_cgroup_isolate_pages(unsigned long nr_to_scan,
42 struct mem_cgroup *mem_cont, 43 struct mem_cgroup *mem_cont,
43 int active); 44 int active);
44extern void mem_cgroup_out_of_memory(struct mem_cgroup *mem, gfp_t gfp_mask); 45extern void mem_cgroup_out_of_memory(struct mem_cgroup *mem, gfp_t gfp_mask);
45extern int mem_cgroup_cache_charge(struct page *page, struct mm_struct *mm); 46extern int mem_cgroup_cache_charge(struct page *page, struct mm_struct *mm,
47 gfp_t gfp_mask);
46extern struct mem_cgroup *mm_cgroup(struct mm_struct *mm); 48extern struct mem_cgroup *mm_cgroup(struct mm_struct *mm);
47 49
48static inline void mem_cgroup_uncharge_page(struct page *page) 50static inline void mem_cgroup_uncharge_page(struct page *page)
@@ -70,7 +72,8 @@ static inline struct page_cgroup *page_get_page_cgroup(struct page *page)
70 return NULL; 72 return NULL;
71} 73}
72 74
73static inline int mem_cgroup_charge(struct page *page, struct mm_struct *mm) 75static inline int mem_cgroup_charge(struct page *page, struct mm_struct *mm,
76 gfp_t gfp_mask)
74{ 77{
75 return 0; 78 return 0;
76} 79}
@@ -89,7 +92,8 @@ static inline void mem_cgroup_move_lists(struct page_cgroup *pc,
89} 92}
90 93
91static inline int mem_cgroup_cache_charge(struct page *page, 94static inline int mem_cgroup_cache_charge(struct page *page,
92 struct mm_struct *mm) 95 struct mm_struct *mm,
96 gfp_t gfp_mask)
93{ 97{
94 return 0; 98 return 0;
95} 99}