Thread (20 messages) 20 messages, 6 authors, 2026-05-20

Re: [PATCH v2 5/7] mm/vmalloc: map contiguous pages in batches for vmap() if possible

From: Mike Rapoport <rppt@kernel.org>
Date: 2026-05-20 11:53:36
Also in: linux-mm, lkml

On Thu, 14 May 2026 17:41:06 +0800, Wen Jiang [off-list ref] wrote:
quoted hunk ↗ jump to hunk
diff --git a/mm/vmalloc.c b/mm/vmalloc.c
index 516d406507e9..c30a7673e0ac 100644
--- a/mm/vmalloc.c
+++ b/mm/vmalloc.c
@@ -3520,6 +3520,77 @@ void vunmap(const void *addr)
[ ... skip 25 lines ... ]
+
+	return order;
+}
+
+static int __vmap_huge(unsigned long addr, unsigned long end,
+		pgprot_t prot, struct page **pages)
This won't necessaryly create huge mappings, maybe vmap_batched?

-- 
Sincerely yours,
Mike.

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help