]> www.infradead.org Git - users/dwmw2/linux.git/commit
mm/mm_init: rename __init_reserved_page_zone to __init_page_from_nid
authorMike Rapoport (Microsoft) <rppt@kernel.org>
Tue, 25 Feb 2025 08:30:16 +0000 (10:30 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 22 Mar 2025 05:03:11 +0000 (22:03 -0700)
commit09bdc4fe700d1c499d94452d7a20e69c26a8c007
tree8efb0b7549631400cf8b08600336e85ea2698a42
parent24ac6fb6e3647fff3646b3ea1811095441380560
mm/mm_init: rename __init_reserved_page_zone to __init_page_from_nid

__init_reserved_page_zone() function finds the zone for pfn and nid and
performs initialization of a struct page with that zone and nid.  There is
nothing in that function about reserved pages and it is misnamed.

Rename it to __init_page_from_nid() to better reflect what the function
does.

Link: https://lkml.kernel.org/r/20250225083017.567649-2-rppt@kernel.org
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
Reviewed-by: Wei Yang <richard.weiyang@gmail.com>
Cc: Frank van der Linden <fvdl@google.com>
Cc: Muchun Song <muchun.song@linux.dev>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/hugetlb.c
mm/internal.h
mm/mm_init.c