aboutsummaryrefslogtreecommitdiffstats
path: root/mm/hugetlb.c
diff options
context:
space:
mode:
authorMike Rapoport (Microsoft) <[email protected]>2025-02-25 08:30:16 +0000
committerAndrew Morton <[email protected]>2025-03-22 05:03:11 +0000
commit09bdc4fe700d1c499d94452d7a20e69c26a8c007 (patch)
tree8efb0b7549631400cf8b08600336e85ea2698a42 /mm/hugetlb.c
parentmm/cma: using per-CMA locks to improve concurrent allocation performance (diff)
downloadkernel-09bdc4fe700d1c499d94452d7a20e69c26a8c007.tar.gz
kernel-09bdc4fe700d1c499d94452d7a20e69c26a8c007.zip
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/[email protected] Signed-off-by: Mike Rapoport (Microsoft) <[email protected]> Reviewed-by: Wei Yang <[email protected]> Cc: Frank van der Linden <[email protected]> Cc: Muchun Song <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'mm/hugetlb.c')
-rw-r--r--mm/hugetlb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/hugetlb.c b/mm/hugetlb.c
index af9b8c1fca67..6fccfe6d046c 100644
--- a/mm/hugetlb.c
+++ b/mm/hugetlb.c
@@ -3407,7 +3407,7 @@ static void __init hugetlb_bootmem_free_invalid_page(int nid, struct page *page,
while (npages--) {
pfn = page_to_pfn(page);
- __init_reserved_page_zone(pfn, nid);
+ __init_page_from_nid(pfn, nid);
free_reserved_page(page);
page++;
}