Re: [PATCH 01/13] mm: add softleaf_to_pmd() and convert existing callers

From: Usama Arif

Date: Fri May 29 2026 - 11:01:16 EST




On 29/05/2026 08:20, Dev Jain wrote:
>
>
> On 27/04/26 3:31 pm, Usama Arif wrote:
>> Add softleaf_to_pmd() as the PMD counterpart to softleaf_to_pte(),
>> completing the symmetry of the softleaf abstraction for page table
>> leaf entries.
>>
>> The upcoming PMD swap entry support needs to construct PMD entries
>> from swap entries. Converting existing swp_entry_to_pmd() callers
>> to softleaf_to_pmd() in a prep patch keeps the feature patches
>> focused on new functionality rather than mixing refactoring with
>> new code.
>>
>> Signed-off-by: Usama Arif <usama.arif@xxxxxxxxx>
>> ---
>
> Any reason why you have left out the conversion in migrate_device.c?
>
>

It looks like I missed those, or maybe there might be some that were
added later. In either case, I will grep through and add any that
were remaining when I rebase and send the next revision. Thanks!