mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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>
This commit is contained in:
parent
072c56c13e
commit
3c541e14bf
2 changed files with 18 additions and 79 deletions
|
@ -38,6 +38,7 @@ extern struct page_cgroup *page_get_page_cgroup(struct page *page);
|
|||
extern int mem_cgroup_charge(struct page *page, struct mm_struct *mm,
|
||||
gfp_t gfp_mask);
|
||||
extern void mem_cgroup_uncharge(struct page_cgroup *pc);
|
||||
extern void mem_cgroup_uncharge_page(struct page *page);
|
||||
extern void mem_cgroup_move_lists(struct page_cgroup *pc, bool active);
|
||||
extern unsigned long mem_cgroup_isolate_pages(unsigned long nr_to_scan,
|
||||
struct list_head *dst,
|
||||
|
@ -55,11 +56,6 @@ static inline struct mem_cgroup *mm_cgroup(const struct mm_struct *mm)
|
|||
return rcu_dereference(mm->mem_cgroup);
|
||||
}
|
||||
|
||||
static inline void mem_cgroup_uncharge_page(struct page *page)
|
||||
{
|
||||
mem_cgroup_uncharge(page_get_page_cgroup(page));
|
||||
}
|
||||
|
||||
extern int mem_cgroup_prepare_migration(struct page *page);
|
||||
extern void mem_cgroup_end_migration(struct page *page);
|
||||
extern void mem_cgroup_page_migration(struct page *page, struct page *newpage);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue