| From: Andrew Morton <akpm@linux-foundation.org> |
| Subject: hugetlb-parallelize-1g-hugetlb-initialization-fix |
| Date: Thu Feb 22 10:34:41 AM PST 2024 |
| |
| s/initialied/initialized/, per Alexey |
| |
| Cc: Alexey Dobriyan <adobriyan@gmail.com> |
| Cc: David Hildenbrand <david@redhat.com> |
| Cc: David Rientjes <rientjes@google.com> |
| Cc: Gang Li <gang.li@linux.dev> |
| Cc: Gang Li <ligang.bdlg@bytedance.com> |
| Cc: Mike Kravetz <mike.kravetz@oracle.com> |
| Cc: Muchun Song <muchun.song@linux.dev> |
| Cc: Tim Chen <tim.c.chen@linux.intel.com> |
| Cc: Daniel Jordan <daniel.m.jordan@oracle.com> |
| Cc: Jane Chu <jane.chu@oracle.com> |
| Cc: Paul E. McKenney <paulmck@kernel.org> |
| Cc: Randy Dunlap <rdunlap@infradead.org> |
| Cc: Steffen Klassert <steffen.klassert@secunet.com> |
| Signed-off-by: Andrew Morton <akpm@linux-foundation.org> |
| --- |
| |
| mm/hugetlb.c | 6 +++--- |
| 1 file changed, 3 insertions(+), 3 deletions(-) |
| |
| --- a/mm/hugetlb.c~hugetlb-parallelize-1g-hugetlb-initialization-fix |
| +++ a/mm/hugetlb.c |
| @@ -3625,7 +3625,7 @@ static unsigned long __init hugetlb_page |
| static void __init hugetlb_hstate_alloc_pages(struct hstate *h) |
| { |
| unsigned long allocated; |
| - static bool initialied __initdata; |
| + static bool initialized __initdata; |
| |
| /* skip gigantic hugepages allocation if hugetlb_cma enabled */ |
| if (hstate_is_gigantic(h) && hugetlb_cma_size) { |
| @@ -3634,12 +3634,12 @@ static void __init hugetlb_hstate_alloc_ |
| } |
| |
| /* hugetlb_hstate_alloc_pages will be called many times, initialize huge_boot_pages once */ |
| - if (!initialied) { |
| + if (!initialized) { |
| int i = 0; |
| |
| for (i = 0; i < MAX_NUMNODES; i++) |
| INIT_LIST_HEAD(&huge_boot_pages[i]); |
| - initialied = true; |
| + initialized = true; |
| } |
| |
| /* do node specific alloc */ |
| _ |