[PATCH 1/4] mm/vmalloc: Remove unnecessary size ALIGN in __vmalloc_node_range_noprof

From: Liu Ye
Date: Mon Mar 03 2025 - 04:44:31 EST


The same operation already exists in the function __get_vm_area_node,
so delete the duplicate operation to simplify the code.

Signed-off-by: Liu Ye <liuye@xxxxxxxxxx>
---
mm/vmalloc.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/mm/vmalloc.c b/mm/vmalloc.c
index dc658d4af181..20d9b9de84b1 100644
--- a/mm/vmalloc.c
+++ b/mm/vmalloc.c
@@ -3798,7 +3798,6 @@ void *__vmalloc_node_range_noprof(unsigned long size, unsigned long align,
shift = arch_vmap_pte_supported_shift(size);

align = max(real_align, 1UL << shift);
- size = ALIGN(real_size, 1UL << shift);
}

again:
--
2.25.1