Thread (9 messages) 9 messages, 2 authors, 1d ago

Re: [PATCH v5 6/6] mm/vmalloc: align vm_area so vmap() can batch mappings

From: Barry Song <baohua@kernel.org>
Date: 2026-07-06 09:27:57
Also in: linux-mm, lkml

On Mon, Jul 6, 2026 at 4:44 PM Wen Jiang [off-list ref] wrote:
From: "Barry Song (Xiaomi)" <baohua@kernel.org>

Try to align the vmap virtual address to PMD_SHIFT or a
larger PTE mapping size hinted by the architecture, so
contiguous pages can be batch-mapped when setting PMD or
PTE entries. We do not expect any significant overhead for
this.

Add __get_vm_area_node_aligned_caller() as a wrapper over
__get_vm_area_node() to simplify repeated calls with fixed
arguments.

Signed-off-by: Barry Song (Xiaomi) <baohua@kernel.org>
Signed-off-by: Wen Jiang <redacted>
Tested-by: Xueyuan Chen <redacted>\
please collect Uladzislau's reviewed-by tags [1].
Reviewed-by: Uladzislau Rezki (Sony) <urezki@gmail.com>
also to other patches with tags gotten in v4.

You can use b4 which will help collect tags automatically.

[1] https://lore.kernel.org/linux-mm/aj6m1cFUTlr_DCdj@milan/ (local)
---
 mm/vmalloc.c | 35 ++++++++++++++++++++++++++++++++++-
 1 file changed, 34 insertions(+), 1 deletion(-)
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help