diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 5585dc3d36466189b0d89adf8e86f424372bdd23..d0e57a3cda1899c156274d53e49e11be42957f87 100644 --- a/mm/memcontrol.c +++ b/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 */