Messages in this thread | | | From | "Aneesh Kumar K.V" <> | Subject | Re: [PATCH v4 4/8] mm/memory_hotplug: Poison memmap in remove_pfn_range_from_zone() | Date | Thu, 26 Sep 2019 14:40:54 +0530 |
| |
David Hildenbrand <david@redhat.com> writes: @@ -134,11 +134,12 @@ void memunmap_pages(struct dev_pagemap *pgmap)
> mem_hotplug_begin(); > + remove_pfn_range_from_zone(page_zone(pfn_to_page(pfn)), pfn, > + PHYS_PFN(resource_size(res)));
That should be part of PATCH 3?
> if (pgmap->type == MEMORY_DEVICE_PRIVATE) { > - pfn = PHYS_PFN(res->start); > __remove_pages(pfn, PHYS_PFN(resource_size(res)), NULL); > } else { > arch_remove_memory(nid, res->start, resource_size(res), > -- > 2.21.0
-aneesh
| |