aboutsummaryrefslogtreecommitdiffstats
path: root/mm/memory_hotplug.c
diff options
context:
space:
mode:
authorKAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>2007-11-14 19:59:12 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-11-14 21:45:38 -0500
commitdbc0e4cefd003834440fe7ac5464616c5235cb94 (patch)
tree8c64dd88783239a360b937315b3109276b7f193a /mm/memory_hotplug.c
parent3ad33b2436b545cbe8b28e53f3710432cad457ab (diff)
memory hotremove: unset migrate type "ISOLATE" after removal
We should unset migrate type "ISOLATE" when we successfully removed memory. But current code has BUG and cannot works well. This patch also includes bugfix? to change get_pageblock_flags to get_pageblock_migratetype(). Thanks to Badari Pulavarty for finding this. Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Acked-by: Badari Pulavarty <pbadari@us.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/memory_hotplug.c')
-rw-r--r--mm/memory_hotplug.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c
index 3a47871a29d9..987abe6375ed 100644
--- a/mm/memory_hotplug.c
+++ b/mm/memory_hotplug.c
@@ -574,8 +574,8 @@ repeat:
574 /* Ok, all of our target is islaoted. 574 /* Ok, all of our target is islaoted.
575 We cannot do rollback at this point. */ 575 We cannot do rollback at this point. */
576 offline_isolated_pages(start_pfn, end_pfn); 576 offline_isolated_pages(start_pfn, end_pfn);
577 /* reset pagetype flags */ 577 /* reset pagetype flags and makes migrate type to be MOVABLE */
578 start_isolate_page_range(start_pfn, end_pfn); 578 undo_isolate_page_range(start_pfn, end_pfn);
579 /* removal success */ 579 /* removal success */
580 zone->present_pages -= offlined_pages; 580 zone->present_pages -= offlined_pages;
581 zone->zone_pgdat->node_present_pages -= offlined_pages; 581 zone->zone_pgdat->node_present_pages -= offlined_pages;