From raybry@sgi.com Fri Jul 1 15:41:50 2005 Date: Fri, 1 Jul 2005 15:41:48 -0700 (PDT) From: Ray Bryant To: Hirokazu Takahashi , Dave Hansen , Marcelo Tosatti , Andi Kleen Cc: Christoph Hellwig , linux-mm , Nathan Scott , Ray Bryant , lhms-devel@lists.sourceforge.net, Ray Bryant , Paul Jackson , clameter@sgi.com Subject: [PATCH 2.6.13-rc1 11/11] mm: manual page migration-rc4 -- N1.2-add-nodemap-to-try_to_migrate_pages-call.patch Manual page migration adds a nodemap arg to try_to_migrate_pages(). The nodemap specifies where pages found on a particular node are to be migrated. If all you want to do is to migrate the page off of the current node, then you specify the nodemap argument as NULL. Add the NULL to the try_to_migrate_pages() invocation. This patch should be added to the Memory Hotplug series after patch N1.1-pass-page_list-to-steal_page.patch (for 2.6.12-rc5-mhp1). Signed-off-by: Ray Bryant -- page_alloc.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: linux-2.6.13/mm/page_alloc.c =================================================================== --- linux-2.6.13.orig/mm/page_alloc.c 2005-08-30 12:18:22.000000000 -0700 +++ linux-2.6.13/mm/page_alloc.c 2005-08-30 13:21:16.000000000 -0700 @@ -858,7 +858,7 @@ retry: on_each_cpu(lru_drain_schedule, NULL, 1, 1); rest = grab_capturing_pages(&page_list, start_pfn, nr_pages); - remains = try_to_migrate_pages(&page_list); + remains = try_to_migrate_pages(&page_list, NULL); if (rest || !list_empty(&page_list)) { if (remains == -ENOSPC) { /* A swap device should be added. */