[PATCH v5 6/6] mm/vmalloc: align vm_area so vmap() can batch mappings
Barry Song
baohua at kernel.org
Mon Jul 6 02:27:06 PDT 2026
On Mon, Jul 6, 2026 at 4:44 PM Wen Jiang <jiangwenxiaomi at gmail.com> wrote:
>
> From: "Barry Song (Xiaomi)" <baohua at 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 at kernel.org>
> Signed-off-by: Wen Jiang <jiangwen6 at xiaomi.com>
> Tested-by: Xueyuan Chen <xueyuan.chen21 at gmail.com>\
please collect Uladzislau's reviewed-by tags [1].
Reviewed-by: Uladzislau Rezki (Sony) <urezki at 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/
> ---
> mm/vmalloc.c | 35 ++++++++++++++++++++++++++++++++++-
> 1 file changed, 34 insertions(+), 1 deletion(-)
More information about the linux-arm-kernel
mailing list