aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBaoquan He <[email protected]>2025-04-18 22:36:52 +0000
committerAndrew Morton <[email protected]>2025-05-13 06:50:32 +0000
commit8ab8442d44ee37cc21fdc11530158ee2b2be5ed5 (patch)
treec0bbe19cc3b5b87b438c15cb0b8a7f4c7a6487a4
parentmm/vmalloc.c: optimize code in decay_va_pool_node() a little bit (diff)
downloadkernel-8ab8442d44ee37cc21fdc11530158ee2b2be5ed5.tar.gz
kernel-8ab8442d44ee37cc21fdc11530158ee2b2be5ed5.zip
mm/vmalloc: optimize function vm_unmap_aliases()
Remove unneeded local variables and replace them with values. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Baoquan He <[email protected]> Reviewed-by: Uladzislau Rezki (Sony) <[email protected]> Reviewed-by: Vishal Moola (Oracle) <[email protected]> Reviewed-by: Shivank Garg <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
-rw-r--r--mm/vmalloc.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/mm/vmalloc.c b/mm/vmalloc.c
index e58c2ed4bcba..bfc2f2c45d89 100644
--- a/mm/vmalloc.c
+++ b/mm/vmalloc.c
@@ -2929,10 +2929,7 @@ static void _vm_unmap_aliases(unsigned long start, unsigned long end, int flush)
*/
void vm_unmap_aliases(void)
{
- unsigned long start = ULONG_MAX, end = 0;
- int flush = 0;
-
- _vm_unmap_aliases(start, end, flush);
+ _vm_unmap_aliases(ULONG_MAX, 0, 0);
}
EXPORT_SYMBOL_GPL(vm_unmap_aliases);