aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/memcontrol.h
diff options
context:
space:
mode:
authorBalbir Singh <balbir@linux.vnet.ibm.com>2008-02-07 03:14:41 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2008-02-07 11:42:22 -0500
commit3c541e14bfa553133c3473a6ed3e4c0583ea2285 (patch)
tree4e8ca5d7272803d3fe1bb06963b132248d0b4240 /include/linux/memcontrol.h
parent072c56c13e1302fcdc39961dc64e76485731ad67 (diff)
Memory controller remove control_type feature
Based on the discussion at http://lkml.org/lkml/2007/12/20/383, it was felt that control_type might not be a good thing to implement right away. We can add this flexibility at a later point when required. Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com> Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/memcontrol.h')
-rw-r--r--include/linux/memcontrol.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/include/linux/memcontrol.h b/include/linux/memcontrol.h
index d87090eb14c0..9815951ec995 100644
--- a/include/linux/memcontrol.h
+++ b/include/linux/memcontrol.h
@@ -38,6 +38,7 @@ extern struct page_cgroup *page_get_page_cgroup(struct page *page);
38extern int mem_cgroup_charge(struct page *page, struct mm_struct *mm, 38extern int mem_cgroup_charge(struct page *page, struct mm_struct *mm,
39 gfp_t gfp_mask); 39 gfp_t gfp_mask);
40extern void mem_cgroup_uncharge(struct page_cgroup *pc); 40extern void mem_cgroup_uncharge(struct page_cgroup *pc);
41extern void mem_cgroup_uncharge_page(struct page *page);
41extern void mem_cgroup_move_lists(struct page_cgroup *pc, bool active); 42extern void mem_cgroup_move_lists(struct page_cgroup *pc, bool active);
42extern unsigned long mem_cgroup_isolate_pages(unsigned long nr_to_scan, 43extern unsigned long mem_cgroup_isolate_pages(unsigned long nr_to_scan,
43 struct list_head *dst, 44 struct list_head *dst,
@@ -55,11 +56,6 @@ static inline struct mem_cgroup *mm_cgroup(const struct mm_struct *mm)
55 return rcu_dereference(mm->mem_cgroup); 56 return rcu_dereference(mm->mem_cgroup);
56} 57}
57 58
58static inline void mem_cgroup_uncharge_page(struct page *page)
59{
60 mem_cgroup_uncharge(page_get_page_cgroup(page));
61}
62
63extern int mem_cgroup_prepare_migration(struct page *page); 59extern int mem_cgroup_prepare_migration(struct page *page);
64extern void mem_cgroup_end_migration(struct page *page); 60extern void mem_cgroup_end_migration(struct page *page);
65extern void mem_cgroup_page_migration(struct page *page, struct page *newpage); 61extern void mem_cgroup_page_migration(struct page *page, struct page *newpage);