Maybe Aneesh will post his own version. This is just for my work. >From eaf25c555ec809006220ef22ef152aa04c30c1af Mon Sep 17 00:00:00 2001 From: KAMEZAWA Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx> Date: Thu, 26 Apr 2012 17:51:52 +0900 Subject: [PATCH 1/9] compile-fix My version of compile fix for linux-next, discussed between Andrew and Aneesh. Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx> --- include/linux/hugetlb.h | 4 ---- include/linux/memcontrol.h | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/include/linux/hugetlb.h b/include/linux/hugetlb.h index 828b073..fc226be 100644 --- a/include/linux/hugetlb.h +++ b/include/linux/hugetlb.h @@ -343,8 +343,4 @@ static inline unsigned int pages_per_huge_page(struct hstate *h) #define hstate_index(h) 0 #endif -#ifdef CONFIG_MEM_RES_CTLR_HUGETLB -extern int hugetlb_force_memcg_empty(struct cgroup *cgroup); -#endif - #endif /* _LINUX_HUGETLB_H */ diff --git a/include/linux/memcontrol.h b/include/linux/memcontrol.h index f173811..ca0914a 100644 --- a/include/linux/memcontrol.h +++ b/include/linux/memcontrol.h @@ -450,9 +450,14 @@ extern int mem_cgroup_move_hugetlb_parent(int idx, struct cgroup *cgroup, struct page *page); extern bool mem_cgroup_have_hugetlb_usage(struct cgroup *cgroup); +extern int hugetlb_force_memcg_empty(struct cgroup *cgroup); + extern void mem_cgroup_hugetlb_migrate(struct page *oldhpage, struct page *newhpage); #else +struct cgroup; +struct mem_cgroup; + static inline int mem_cgroup_hugetlb_charge_page(int idx, unsigned long nr_pages, struct mem_cgroup **ptr) @@ -494,6 +499,16 @@ mem_cgroup_move_hugetlb_parent(int idx, struct cgroup *cgroup, return 0; } +static inline void mem_cgroup_hugetlb_migrate(struct page *oldhpage, + struct page *newhpage) +{ + return; +} + +static inline int hugetlb_force_memcg_empty(struct cgroup *cgroup) +{ + return 0; +} #endif /* CONFIG_MEM_RES_CTLR_HUGETLB */ #endif /* _LINUX_MEMCONTROL_H */ -- 1.7.4.1 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>