Re: [PATCH v3 05/16] mm: use leaf entries in debug pgtable + remove is_swap_pte()
From: Vlastimil Babka
Date: Fri Nov 21 2025 - 12:10:14 EST
On 11/10/25 23:21, Lorenzo Stoakes wrote:
> Remove invocations of is_swap_pte() in mm/debug_vm_pgtable.c and use
> softleaf_from_pte() and softleaf_is_swap() as necessary to replace this
> usage.
>
> We update the test code to use a 'true' swap entry throughout so we are
> guaranteed this is not a non-swap entry, so all asserts continue to operate
> correctly.
>
> With this change in place, we no longer use is_swap_pte() anywhere, so
> remove it.
Nice!
> Signed-off-by: Lorenzo Stoakes <lorenzo.stoakes@xxxxxxxxxx>
Reviewed-by: Vlastimil Babka <vbabka@xxxxxxx>