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

From: Vlastimil Babka

Date: Thu Nov 27 2025 - 13:02:21 EST


On 11/27/25 18:53, Vlastimil Babka wrote:
> 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@xxxxxxxxxx>
>
> Reviewed-by: Vlastimil Babka <vbabka@xxxxxxx>
>
> Impressive work, I hope it can be promoted to mm-stable now. It would be a

Ah made a mistake checking the git branches, so it's in fact in mm-stable
already. Great! Sorry for the noise.

> 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