[PATCH v2 1/3] mm/memory.c: rename walk_to_pmd() to populate_to_pmd()
From: Avi Weiss
Date: Wed Aug 05 2026 - 10:52:00 EST
This helper allocates any missing page-table levels (it doesn't just
'walk'. Rename for clarity.
Signed-off-by: Avi Weiss <thnkslprpt@xxxxxxxxx>
---
mm/memory.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/mm/memory.c b/mm/memory.c
index ff338c2abe92..8658feba8be9 100644
--- a/mm/memory.c
+++ b/mm/memory.c
@@ -2268,7 +2268,7 @@ void zap_special_vma_range(struct vm_area_struct *vma, unsigned long address,
}
EXPORT_SYMBOL_GPL(zap_special_vma_range);
-static pmd_t *walk_to_pmd(struct mm_struct *mm, unsigned long addr)
+static pmd_t *populate_to_pmd(struct mm_struct *mm, unsigned long addr)
{
pgd_t *pgd;
p4d_t *p4d;
@@ -2293,7 +2293,7 @@ static pmd_t *walk_to_pmd(struct mm_struct *mm, unsigned long addr)
pte_t *get_locked_pte(struct mm_struct *mm, unsigned long addr,
spinlock_t **ptl)
{
- pmd_t *pmd = walk_to_pmd(mm, addr);
+ pmd_t *pmd = populate_to_pmd(mm, addr);
if (!pmd)
return NULL;
@@ -2437,7 +2437,7 @@ static int insert_pages(struct vm_area_struct *vma, unsigned long addr,
int ret;
more:
ret = -EFAULT;
- pmd = walk_to_pmd(mm, addr);
+ pmd = populate_to_pmd(mm, addr);
if (!pmd)
goto out;
--
2.43.0