[PATCH v6 6/7] mm/memory_hotplug: Embed vmem_altmap details in memory block

David Hildenbrand david at redhat.com
Thu Jul 27 21:17:44 AEST 2023


> +	/*
> +	 * Now that we are tracking alloc and free correctly
> +	 * we can add check to verify altmap free pages.
> +	 */

Better remove the history lesson from the comment.

"Verify that all vmemmap pages have actually been freed."

> +	if (altmap) {
> +		WARN(altmap->alloc, "Altmap not fully unmapped");
> +		kfree(altmap);
> +	}
> +
>   	if (IS_ENABLED(CONFIG_ARCH_KEEP_MEMBLOCK)) {
>   		memblock_phys_free(start, size);
>   		memblock_remove(start, size);

Acked-by: David Hildenbrand <david at redhat.com>

-- 
Cheers,

David / dhildenb



More information about the Linuxppc-dev mailing list