Re: [PATCH v3 12/16] mm: remove remaining is_swap_pmd() users and is_swap_pmd()

Vlastimil Babka
2025-11-27T17:03:30Z

On 11/10/25 23:21, Lorenzo Stoakes wrote:
> Update copy_huge_pmd() and change_huge_pmd() to use pmd_is_valid_softleaf()
> - as this checks for the only valid non-present huge PMD states.
>
> Also update mm/debug_vm_pgtable.c to explicitly test for a valid leaf PMD
> entry (which it was not before, which was incorrect), and have it test
> against pmd_is_huge() and pmd_is_valid_softleaf() rather than
> is_swap_pmd().
>
> With these changes done there are no further users of is_swap_pmd(), so
> remove it.
>
> Signed-off-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>

Reviewed-by: Vlastimil Babka <vbabka@suse.cz>