Re: [v2 01/16] mm: add softleaf_to_pmd() and convert existing callers
From: Zi Yan
Date: Sat Jun 13 2026 - 14:52:59 EST
On 2 Jun 2026, at 10:24, 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.
>
> Acked-by: David Hildenbrand (Arm) <david@xxxxxxxxxx>
> Signed-off-by: Usama Arif <usama.arif@xxxxxxxxx>
> ---
> include/linux/leafops.h | 20 ++++++++++++++++++++
> mm/debug_vm_pgtable.c | 4 ++--
> mm/huge_memory.c | 12 ++++++------
> mm/migrate_device.c | 2 +-
> 4 files changed, 29 insertions(+), 9 deletions(-)
>
LGTM.
Reviewed-by: Zi Yan <ziy@xxxxxxxxxx>
--
Best Regards,
Yan, Zi