From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by omx2.sgi.com (8.12.11/8.12.9/linux-outbound_gateway-1.1) with ESMTP id j620X1ZC017239 for ; Fri, 1 Jul 2005 17:33:01 -0700 Date: Fri, 1 Jul 2005 15:41:48 -0700 (PDT) From: Ray Bryant Message-Id: <20050701224148.542.16187.51386@jackhammer.engr.sgi.com> In-Reply-To: <20050701224038.542.60558.44109@jackhammer.engr.sgi.com> References: <20050701224038.542.60558.44109@jackhammer.engr.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 Sender: owner-linux-mm@kvack.org Return-Path: 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 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