aboutsummaryrefslogtreecommitdiffstats
path: root/mm/memcontrol.c
diff options
context:
space:
mode:
authorKAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>2012-07-31 19:42:45 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2012-07-31 21:42:42 -0400
commit6068bf0104becf07792b2867bc4d17c369419f8b (patch)
tree5dd52f4e786a94035267f7d84c9256916491d817 /mm/memcontrol.c
parentd845aa2c75bcff87dacf098378b5706b12d1588f (diff)
memcg: mem_cgroup_move_parent() doesn't need gfp_mask
Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Cc: Michal Hocko <mhocko@suse.cz> Cc: Johannes Weiner <hannes@cmpxchg.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/memcontrol.c')
-rw-r--r--mm/memcontrol.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index a1f00f0a66cd..964786634746 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -2643,8 +2643,7 @@ out:
2643 2643
2644static int mem_cgroup_move_parent(struct page *page, 2644static int mem_cgroup_move_parent(struct page *page,
2645 struct page_cgroup *pc, 2645 struct page_cgroup *pc,
2646 struct mem_cgroup *child, 2646 struct mem_cgroup *child)
2647 gfp_t gfp_mask)
2648{ 2647{
2649 struct mem_cgroup *parent; 2648 struct mem_cgroup *parent;
2650 unsigned int nr_pages; 2649 unsigned int nr_pages;
@@ -3652,7 +3651,7 @@ static int mem_cgroup_force_empty_list(struct mem_cgroup *memcg,
3652 3651
3653 pc = lookup_page_cgroup(page); 3652 pc = lookup_page_cgroup(page);
3654 3653
3655 ret = mem_cgroup_move_parent(page, pc, memcg, GFP_KERNEL); 3654 ret = mem_cgroup_move_parent(page, pc, memcg);
3656 3655
3657 if (ret == -EBUSY || ret == -EINVAL) { 3656 if (ret == -EBUSY || ret == -EINVAL) {
3658 /* found lock contention or "pc" is obsolete. */ 3657 /* found lock contention or "pc" is obsolete. */