Re: [PATCH v3 16/16] mm: replace remaining pte_to_swp_entry() with softleaf_from_pte()

Vlastimil Babka
2025-11-27T17:53:24Z

On 11/10/25 23:21, Lorenzo Stoakes wrote:
> There are straggler invocations of pte_to_swp_entry() lying around, replace
> all of these with the software leaf entry equivalent - softleaf_from_pte().
>
> With those removed, eliminate pte_to_swp_entry() altogether.

RIP.

> No functional change intended.
>
> Signed-off-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>

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

Impressive work, I hope it can be promoted to mm-stable now. It would be a
pain not to have it merged in the 6.19 merge window. Still plenty of time to
fix up any hypothetical bugs not found until now during the rc's - overall
it looks solid.

Thanks!
Vlastimil