diff options
-rw-r--r-- | mm/memory_hotplug.c | 4 | ||||
-rw-r--r-- | mm/page_isolation.c | 6 |
2 files changed, 5 insertions, 5 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; |
diff --git a/mm/page_isolation.c b/mm/page_isolation.c index 8f92a29695cc..3444b58033c8 100644 --- a/mm/page_isolation.c +++ b/mm/page_isolation.c | |||
@@ -55,7 +55,7 @@ start_isolate_page_range(unsigned long start_pfn, unsigned long end_pfn) | |||
55 | return 0; | 55 | return 0; |
56 | undo: | 56 | undo: |
57 | for (pfn = start_pfn; | 57 | for (pfn = start_pfn; |
58 | pfn <= undo_pfn; | 58 | pfn < undo_pfn; |
59 | pfn += pageblock_nr_pages) | 59 | pfn += pageblock_nr_pages) |
60 | unset_migratetype_isolate(pfn_to_page(pfn)); | 60 | unset_migratetype_isolate(pfn_to_page(pfn)); |
61 | 61 | ||
@@ -76,7 +76,7 @@ undo_isolate_page_range(unsigned long start_pfn, unsigned long end_pfn) | |||
76 | pfn < end_pfn; | 76 | pfn < end_pfn; |
77 | pfn += pageblock_nr_pages) { | 77 | pfn += pageblock_nr_pages) { |
78 | page = __first_valid_page(pfn, pageblock_nr_pages); | 78 | page = __first_valid_page(pfn, pageblock_nr_pages); |
79 | if (!page || get_pageblock_flags(page) != MIGRATE_ISOLATE) | 79 | if (!page || get_pageblock_migratetype(page) != MIGRATE_ISOLATE) |
80 | continue; | 80 | continue; |
81 | unset_migratetype_isolate(page); | 81 | unset_migratetype_isolate(page); |
82 | } | 82 | } |
@@ -126,7 +126,7 @@ int test_pages_isolated(unsigned long start_pfn, unsigned long end_pfn) | |||
126 | */ | 126 | */ |
127 | for (pfn = start_pfn; pfn < end_pfn; pfn += pageblock_nr_pages) { | 127 | for (pfn = start_pfn; pfn < end_pfn; pfn += pageblock_nr_pages) { |
128 | page = __first_valid_page(pfn, pageblock_nr_pages); | 128 | page = __first_valid_page(pfn, pageblock_nr_pages); |
129 | if (page && get_pageblock_flags(page) != MIGRATE_ISOLATE) | 129 | if (page && get_pageblock_migratetype(page) != MIGRATE_ISOLATE) |
130 | break; | 130 | break; |
131 | } | 131 | } |
132 | if (pfn < end_pfn) | 132 | if (pfn < end_pfn) |