Re: [PATCH v3 05/16] mm: use leaf entries in debug pgtable + remove is_swap_pte()

Vlastimil Babka
2025-11-21T17:10:14Z

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@oracle.com>

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