From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Wed, 22 Jun 2005 09:40:14 -0700 (PDT) From: Ray Bryant Message-Id: <20050622164014.25515.54016.81443@tomahawk.engr.sgi.com> In-Reply-To: <20050622163908.25515.49944.65860@tomahawk.engr.sgi.com> References: <20050622163908.25515.49944.65860@tomahawk.engr.sgi.com> Subject: [PATCH 2.6.12-rc5 10/10] mm: manual page migration-rc3 -- N1.2-add-nodemap-to-try_to_migrate_pages-call.patch Sender: owner-linux-mm@kvack.org Return-Path: To: Hirokazu Takahashi , Marcelo Tosatti , Andi Kleen , Dave Hansen Cc: Christoph Hellwig , Ray Bryant , linux-mm , lhms-devel@lists.sourceforge.net, Ray Bryant , Paul Jackson , Nathan Scott List-ID: 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.12-rc5-mhp1-memory-hotplug/mm/page_alloc.c =================================================================== --- linux-2.6.12-rc5-mhp1-memory-hotplug.orig/mm/page_alloc.c 2005-06-21 10:43:14.000000000 -0700 +++ linux-2.6.12-rc5-mhp1-memory-hotplug/mm/page_alloc.c 2005-06-21 10:43:14.000000000 -0700 @@ -823,7 +823,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. */ -- Best Regards, Ray ----------------------------------------------- Ray Bryant raybry@sgi.com The box said: "Requires Windows 98 or better", so I installed Linux. ----------------------------------------------- -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: aart@kvack.org