mbox series

[0/4] Optimize __vmalloc_node_range_noprof function.

Message ID 20250303094410.437985-1-liuye@kylinos.cn (mailing list archive)
Headers show
Series Optimize __vmalloc_node_range_noprof function. | expand

Message

Liu Ye March 3, 2025, 9:44 a.m. UTC
The use of variables real_size and real_align in function 
__vmalloc_node_range_noprof is unreadable. Optimize it in four patches.

Liu Ye (4):
  mm/vmalloc: Remove unnecessary size ALIGN in
    __vmalloc_node_range_noprof
  mm/vmalloc: Size should be used instead of real_size in
    __vmalloc_node_range_noprof
  mm/vmalloc: Remove the real_size variable to simplify the code in
    __vmalloc_node_range_noprof
  mm/vmalloc: Rename the variable real_align to original_align to
    prevent misunderstanding

 mm/vmalloc.c | 20 ++++++++------------
 1 file changed, 8 insertions(+), 12 deletions(-)

Comments

Uladzislau Rezki March 3, 2025, 4:09 p.m. UTC | #1
On Mon, Mar 03, 2025 at 05:44:06PM +0800, Liu Ye wrote:
> The use of variables real_size and real_align in function 
> __vmalloc_node_range_noprof is unreadable. Optimize it in four patches.
> 
> Liu Ye (4):
>   mm/vmalloc: Remove unnecessary size ALIGN in
>     __vmalloc_node_range_noprof
>   mm/vmalloc: Size should be used instead of real_size in
>     __vmalloc_node_range_noprof
>   mm/vmalloc: Remove the real_size variable to simplify the code in
>     __vmalloc_node_range_noprof
>   mm/vmalloc: Rename the variable real_align to original_align to
>     prevent misunderstanding
> 
>  mm/vmalloc.c | 20 ++++++++------------
>  1 file changed, 8 insertions(+), 12 deletions(-)
> 
> -- 
Let me double check it. Quick question, this series does not
introduce any functional change?

--
Uladzislau Rezki