Re: [PATCH 4/8] mm/memory_hotplug: return online type from add_memory_driver_managed()
From: Gregory Price
Date: Wed Jan 14 2026 - 12:28:35 EST
On Wed, Jan 14, 2026 at 11:49:19AM +0100, David Hildenbrand (Red Hat) wrote:
> On 1/14/26 09:51, Gregory Price wrote:
> > Change add_memory_driver_managed() to return the online type (MMOP_*)
> > on success instead of 0. This allows callers to determine the actual
> > online state of the memory after addition, which is important when
> > MMOP_SYSTEM_DEFAULT is used and the actual online type depends on the
> > system default policy.
>
> Another reason to just let the caller handle MMOP_SYSTEM_DEFAULT itself by
> calling mhp_get_default_online_type() :)
>
Yeah i don't even end up using it, this is just cruft from early
iterations. I'll clean it up.
~Gregory