Commit-ID: afe29fed840dc244f5711157ebd29f83ca3bdb2e Gitweb: http://git.kernel.org/tip/afe29fed840dc244f5711157ebd29f83ca3bdb2e Author: Ingo Molnar <mingo@xxxxxxxxxx> AuthorDate: Tue, 13 Nov 2012 13:05:54 +0100 Committer: Ingo Molnar <mingo@xxxxxxxxxx> CommitDate: Tue, 13 Nov 2012 18:09:32 +0100 mm: Allow the migration of shared pages There's no good reason to disallow the migration of pages shared by multiple processes - the migration code itself is already properly walking the rmap chain. So allow it. We've tested this with various workloads and no ill effect appears to have come from this. Cc: Peter Zijlstra <a.p.zijlstra@xxxxxxxxx> Cc: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> Cc: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> Cc: Andrea Arcangeli <aarcange@xxxxxxxxxx> Cc: Rik van Riel <riel@xxxxxxxxxx> Cc: Mel Gorman <mgorman@xxxxxxx> Signed-off-by: Ingo Molnar <mingo@xxxxxxxxxx> --- mm/migrate.c | 6 ------ 1 files changed, 0 insertions(+), 6 deletions(-) diff --git a/mm/migrate.c b/mm/migrate.c index 72d1056..b89062d 100644 --- a/mm/migrate.c +++ b/mm/migrate.c @@ -1427,12 +1427,6 @@ int migrate_misplaced_page(struct page *page, int node) gfp_t gfp = GFP_HIGHUSER_MOVABLE; /* - * Don't migrate pages that are mapped in multiple processes. - */ - if (page_mapcount(page) != 1) - goto out; - - /* * Never wait for allocations just to migrate on fault, but don't dip * into reserves. And, only accept pages from the specified node. No * sense migrating to a different "misplaced" page! -- To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html