* [PATCH] mm/hugetlb_vmemmap: update outdated comment
@ 2026-02-24 2:28 kexinsun
2026-02-24 5:03 ` Muchun Song
0 siblings, 1 reply; 2+ messages in thread
From: kexinsun @ 2026-02-24 2:28 UTC (permalink / raw)
To: muchun.song
Cc: osalvador, david, akpm, linux-mm, linux-kernel, julia.lawall,
xutong.ma, yunbolyu, ratnadiraw, kexinsun
The function vmemmap_pte_range() was refactored into vmemmap_pte_entry()
by commit fb93ed63345f ("mm: hugetlb_vmemmap: use walk_page_range_novma()
to simplify the code"). Both functions share the key behavior that the
reuse page is identified first before remapping begins. Update the
comment accordingly.
Signed-off-by: kexinsun <kexinsun@smail.nju.edu.cn>
---
mm/hugetlb_vmemmap.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/hugetlb_vmemmap.c b/mm/hugetlb_vmemmap.c
index a9280259e12a..5156e4038b5f 100644
--- a/mm/hugetlb_vmemmap.c
+++ b/mm/hugetlb_vmemmap.c
@@ -350,7 +350,7 @@ static int vmemmap_remap_free(unsigned long start, unsigned long end,
/*
* In order to make remapping routine most efficient for the huge pages,
* the routine of vmemmap page table walking has the following rules
- * (see more details from the vmemmap_pte_range()):
+ * (see more details from the vmemmap_pte_entry()):
*
* - The range [@start, @end) and the range [@reuse, @reuse + PAGE_SIZE)
* should be continuous.
--
2.25.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] mm/hugetlb_vmemmap: update outdated comment
2026-02-24 2:28 [PATCH] mm/hugetlb_vmemmap: update outdated comment kexinsun
@ 2026-02-24 5:03 ` Muchun Song
0 siblings, 0 replies; 2+ messages in thread
From: Muchun Song @ 2026-02-24 5:03 UTC (permalink / raw)
To: kexinsun
Cc: osalvador, david, akpm, linux-mm, linux-kernel, julia.lawall,
xutong.ma, yunbolyu, ratnadiraw
> On Feb 24, 2026, at 10:28, kexinsun <kexinsun@smail.nju.edu.cn> wrote:
>
> The function vmemmap_pte_range() was refactored into vmemmap_pte_entry()
> by commit fb93ed63345f ("mm: hugetlb_vmemmap: use walk_page_range_novma()
> to simplify the code"). Both functions share the key behavior that the
> reuse page is identified first before remapping begins. Update the
> comment accordingly.
>
> Signed-off-by: kexinsun <kexinsun@smail.nju.edu.cn>
Reviewed-by: Muchun Song <muchun.song@linux.dev>
Thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-02-24 5:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-02-24 2:28 [PATCH] mm/hugetlb_vmemmap: update outdated comment kexinsun
2026-02-24 5:03 ` Muchun Song
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox