From: KAMEZAWA Hiroyuki Date: Tue, 31 Jul 2012 23:42:45 +0000 (-0700) Subject: memcg: mem_cgroup_move_parent() doesn't need gfp_mask X-Git-Tag: v3.6-rc1~24^2~85 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6068bf0104becf07792b2867bc4d17c369419f8b;p=platform%2Fkernel%2Flinux-3.10.git memcg: mem_cgroup_move_parent() doesn't need gfp_mask Signed-off-by: KAMEZAWA Hiroyuki Cc: Michal Hocko Cc: Johannes Weiner Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/memcontrol.c b/mm/memcontrol.c index a1f00f0..9647866 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -2643,8 +2643,7 @@ out: static int mem_cgroup_move_parent(struct page *page, struct page_cgroup *pc, - struct mem_cgroup *child, - gfp_t gfp_mask) + struct mem_cgroup *child) { struct mem_cgroup *parent; unsigned int nr_pages; @@ -3652,7 +3651,7 @@ static int mem_cgroup_force_empty_list(struct mem_cgroup *memcg, pc = lookup_page_cgroup(page); - ret = mem_cgroup_move_parent(page, pc, memcg, GFP_KERNEL); + ret = mem_cgroup_move_parent(page, pc, memcg); if (ret == -EBUSY || ret == -EINVAL) { /* found lock contention or "pc" is obsolete. */