Re: [PATCH v2] mm: Untangle config dependencies for demote-on-reclaim

From: Huang, Ying
Date: Tue Mar 22 2022 - 19:58:26 EST


Oscar Salvador <osalvador@xxxxxxx> writes:

> At the time demote-on-reclaim was introduced, it was tied to
> CONFIG_HOTPLUG_CPU + CONFIG_MIGRATE, but that is not really
> accurate.
>
> The only two things we need to depen on is CONFIG_NUMA +
> CONFIG_MIGRATE, so clean this up.
> Furthermore, we only register the hotplug memory notifier
> when the system has CONFIG_MEMORY_HOTPLUG.
>
> Signed-off-by: Oscar Salvador <osalvador@xxxxxxx>
> Suggested-by: "Huang, Ying" <ying.huang@xxxxxxxxx>

LGTM! Thanks!

Reviewed-by: "Huang, Ying" <ying.huang@xxxxxxxxx>

Best Regards,
Huang, Ying