Re: [PATCH 1/6] mm: add softleaf_to_pmd() and convert existing callers

From: Lance Yang

Date: Fri Jul 03 2026 - 06:28:08 EST



On Tue, Jun 30, 2026 at 09:34:38AM -0700, 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>
>Reviewed-by: Zi Yan <ziy@xxxxxxxxxx>
>Signed-off-by: Usama Arif <usama.arif@xxxxxxxxx>
>---

LGTM. Feel free to add:

Reviewed-by: Lance Yang <lance.yang@xxxxxxxxx>