From ea73b43856db7ba779e55d2fa0922677ecd3e140 Mon Sep 17 00:00:00 2001 From: Hugh Dickins Date: Fri, 9 Mar 2012 13:37:32 -0800 Subject: [PATCH] --- yaml --- r: 288395 b: refs/heads/master c: be22aece684f5a700e6247b9861c3759d5798a3c h: refs/heads/master i: 288393: 50bf02b7e9ee7826671c0b4197d081fe2b85b435 288391: f96cf8db3816bc8b0955909e99b5232ce82c591e v: v3 --- [refs] | 2 +- trunk/mm/memcontrol.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 625214661203..3b721064a26b 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: a7f4255f906f60f72e00aad2fb000939449ff32e +refs/heads/master: be22aece684f5a700e6247b9861c3759d5798a3c diff --git a/trunk/mm/memcontrol.c b/trunk/mm/memcontrol.c index 5585dc3d3646..d0e57a3cda18 100644 --- a/trunk/mm/memcontrol.c +++ b/trunk/mm/memcontrol.c @@ -5075,7 +5075,7 @@ static struct page *mc_handle_present_pte(struct vm_area_struct *vma, return NULL; if (PageAnon(page)) { /* we don't move shared anon */ - if (!move_anon() || page_mapcount(page) > 1) + if (!move_anon() || page_mapcount(page) > 2) return NULL; } else if (!move_file()) /* we ignore mapcount for file pages */