mm/memory_hotplug: shrink zones when offlining memory
[linux-2.6-block.git] / arch / x86 / mm / init_32.c
index 930edeb41ec33417755d38293f85ad1717cdee90..0a74407ef92ea939aaa8425613ae8bcda2419b70 100644 (file)
@@ -865,10 +865,8 @@ void arch_remove_memory(int nid, u64 start, u64 size,
 {
        unsigned long start_pfn = start >> PAGE_SHIFT;
        unsigned long nr_pages = size >> PAGE_SHIFT;
-       struct zone *zone;
 
-       zone = page_zone(pfn_to_page(start_pfn));
-       __remove_pages(zone, start_pfn, nr_pages, altmap);
+       __remove_pages(start_pfn, nr_pages, altmap);
 }
 #endif