Re: [PATCH] mm/huge_memory: fix folio split check for anon folios in swapcache.

From: Wei Yang

Date: Wed Nov 05 2025 - 20:44:46 EST


On Wed, Nov 05, 2025 at 11:29:10AM -0500, Zi Yan wrote:
>Both uniform and non uniform split check missed the check to prevent
>splitting anon folios in swapcache to non-zero order. Fix the check.
>
>Fixes: 58729c04cf10 ("mm/huge_memory: add buddy allocator like (non-uniform) folio_split()")
>Reported-by: "David Hildenbrand (Red Hat)" <david@xxxxxxxxxx>
>Closes: https://lore.kernel.org/all/dc0ecc2c-4089-484f-917f-920fdca4c898@xxxxxxxxxx/
>Cc: stable@xxxxxxxxxxxxxxx
>Signed-off-by: Zi Yan <ziy@xxxxxxxxxx>

Reviewed-by: Wei Yang <richard.weiyang@xxxxxxxxx>

--
Wei Yang
Help you, Help me