Re: [PATCH v3 09/16] mm/huge_memory: refactor change_huge_pmd() non-present logic

From: Vlastimil Babka

Date: Fri Nov 21 2025 - 12:58:44 EST


On 11/10/25 23:21, Lorenzo Stoakes wrote:
> Similar to copy_huge_pmd(), there is a large mass of open-coded logic for
> the CONFIG_ARCH_ENABLE_THP_MIGRATION non-present entry case that does not
> use thp_migration_supported() consistently.
>
> Resolve this by separating out this logic and introduce
> change_non_present_huge_pmd().
>
> No functional change intended.
>
> Signed-off-by: Lorenzo Stoakes <lorenzo.stoakes@xxxxxxxxxx>

Reviewed-by: Vlastimil Babka <vbabka@xxxxxxx>