[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Z_44dmh7zGKzAdsb@pc636>
Date: Tue, 15 Apr 2025 12:44:06 +0200
From: Uladzislau Rezki <urezki@...il.com>
To: Baoquan He <bhe@...hat.com>
Cc: linux-mm@...ck.org, akpm@...ux-foundation.org, urezki@...il.com,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 4/5] mm/vmalloc: optimize function vm_unmap_aliases()
On Tue, Apr 15, 2025 at 10:39:51AM +0800, Baoquan He wrote:
> Remove unneeded local variables and replace them with values.
>
> Signed-off-by: Baoquan He <bhe@...hat.com>
> ---
> mm/vmalloc.c | 5 +----
> 1 file changed, 1 insertion(+), 4 deletions(-)
>
> diff --git a/mm/vmalloc.c b/mm/vmalloc.c
> index bf735c890878..3f38a232663b 100644
> --- a/mm/vmalloc.c
> +++ b/mm/vmalloc.c
> @@ -2930,10 +2930,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);
>
> --
> 2.41.0
>
Reviewed-by: Uladzislau Rezki (Sony) <urezki@...il.com>
Makes sense!
--
Uladzislau Rezki
Powered by blists - more mailing lists