Re: [PATCH V2 1/3] mm/hotplug: Prevalidate the address range being added with platform

From: Oscar Salvador
Date: Mon Jan 11 2021 - 08:43:59 EST


On Mon, Jan 11, 2021 at 11:51:47AM +0100, David Hildenbrand wrote:
> AFAIKs, all memhp_get_pluggable_range() users pass "1".
>
> What about the "add_pages()-only" path?

I guess you refer to memremap_pages(), right?
If so, moving the added memhp_range_allowed() check above the if-else might do
the trick

--
Oscar Salvador
SUSE L3