Re: [PATCH] hugetlbfs: fix stale comment in hugetlbfs_file_mmap()

From: Muchun Song

Date: Tue Sep 22 2026 - 22:51:03 EST




> On Sep 23, 2026, at 10:28, Zhenghui Hao <zhenghui.hao@xxxxxx> wrote:
>
> The comment above the VMA flag setup in hugetlbfs_file_mmap() says the VMA
> address alignment has already been checked by prepare_hugepage_range().
> That function no longer exists: it was removed by commit eff41389d824
> ("mm/hugetlb: remove prepare_hugepage_range()"), and the check now lives in
> hugetlb_get_unmapped_area().
>
> The comment also mentions ia64, which was removed from the tree by commit
> cf8e8658100d ("arch: Remove Itanium (IA-64) architecture").
>
> Point the comment at the current function and drop the ia64 reference. The
> rest of the comment, which tells future edits to add any error return only
> after VM_HUGETLB has been set, is still accurate and is left untouched.
>
> No functional change.
>
> Signed-off-by: Zhenghui Hao <zhenghui.hao@xxxxxx>

Acked-by: Muchun Song <muchun.song@xxxxxxxxx>

THanks.