]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
riscv: mm: Properly forward vmemmap_populate() altmap parameter
authorBjörn Töpel <bjorn@rivosinc.com>
Wed, 5 Jun 2024 11:40:44 +0000 (13:40 +0200)
committerPalmer Dabbelt <palmer@rivosinc.com>
Wed, 26 Jun 2024 15:42:37 +0000 (08:42 -0700)
Make sure that the altmap parameter is properly passed on to
vmemmap_populate_hugepages().

Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Signed-off-by: Björn Töpel <bjorn@rivosinc.com>
Link: https://lore.kernel.org/r/20240605114100.315918-2-bjorn@kernel.org
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/mm/init.c

index e3218d65f21d5a432723e0637122af46d8620db4..ecd4e716c9953bfe7dc582ccc6c86ea7e0043a72 100644 (file)
@@ -1438,7 +1438,7 @@ int __meminit vmemmap_populate(unsigned long start, unsigned long end, int node,
         * memory hotplug, we are not able to update all the page tables with
         * the new PMDs.
         */
-       return vmemmap_populate_hugepages(start, end, node, NULL);
+       return vmemmap_populate_hugepages(start, end, node, altmap);
 }
 #endif