mm/hwpoison: introduce per-memory_block hwpoison counter
[linux-2.6-microblaze.git] / mm / sparse.c
index e5a8a3a..2779b41 100644 (file)
@@ -926,8 +926,6 @@ void sparse_remove_section(struct mem_section *ms, unsigned long pfn,
                unsigned long nr_pages, unsigned long map_offset,
                struct vmem_altmap *altmap)
 {
-       clear_hwpoisoned_pages(pfn_to_page(pfn) + map_offset,
-                       nr_pages - map_offset);
        section_deactivate(pfn, nr_pages, altmap);
 }
 #endif /* CONFIG_MEMORY_HOTPLUG */