lkml.org 
[lkml]   [2005]   [Aug]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[RFC][PATCH 10/12] memory hotplug: call setup_per_zone_pages_min after hotplug
From
Date

From: IWAMOTO Toshihiro <iwamoto@valinux.co.jp>
> I found the tests does not work well with Dave's patchset.
> I've found the followings:
>
> - setup_per_zone_pages_min() calls should be added in
> capture_page_range() and online_pages()
> - lru_add_drain() should be called before try_to_migrate_pages()

The following patch deals with the first item.

Signed-off-by: IWAMOTO Toshihiro <iwamoto@valinux.co.jp>
Signed-off-by: Dave Hansen <haveblue@us.ibm.com>
---
memhotplug-dave/mm/memory_hotplug.c | 2 ++
mm/page_alloc.c | 0
2 files changed, 2 insertions(+)
diff -puN include/linux/mmzone.h~D0.7-call_setup_per_zone_pages_min_after_memory_size_change include/linux/mmzone.h
diff -puN mm/memory_hotplug.c~D0.7-call_setup_per_zone_pages_min_after_memory_size_change mm/memory_hotplug.c
--- memhotplug/mm/memory_hotplug.c~D0.7-call_setup_per_zone_pages_min_after_memory_size_change 2005-08-12 07:43:50.000000000 -0700
+++ memhotplug-dave/mm/memory_hotplug.c 2005-08-12 07:43:50.000000000 -0700
@@ -133,5 +133,7 @@ int online_pages(unsigned long pfn, unsi
}
zone->present_pages += onlined_pages;

+ setup_per_zone_pages_min();
+
return 0;
}
diff -puN mm/page_alloc.c~D0.7-call_setup_per_zone_pages_min_after_memory_size_change mm/page_alloc.c
_
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-08-12 16:51    [from the cache]
©2003-2014 Jasper Spaans. hosted at Digital Ocean