Re: [PATCH] slub: use N_NORMAL_MEMORY in can_free_to_pcs to handle remote frees

From: David Rientjes

Date: Fri Apr 03 2026 - 14:02:53 EST


On Fri, 3 Apr 2026, Hao Li wrote:

> Memory hotplug now keeps N_NORMAL_MEMORY up to date correctly, so make
> can_free_to_pcs() use it.
>
> As a result, when freeing objects on memoryless nodes, or on nodes that
> have memory but only in ZONE_MOVABLE, the objects can be freed to the
> sheaf instead of going through the slow path.
>
> Signed-off-by: Hao Li <hao.li@xxxxxxxxx>

Acked-by: David Rientjes <rientjes@xxxxxxxxxx>