OSDN Git Service

mm/vmscan: not necessary to re-init the list for each iteration
authorWei Yang <richard.weiyang@gmail.com>
Fri, 13 May 2022 03:22:59 +0000 (20:22 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 13 May 2022 14:20:13 +0000 (07:20 -0700)
commit048f6e1a427ee9cddf62f9b3766372c69846fa4f
treefcf2b70a405ace6b0235ddc1afee26ccae06bc7f
parent717aeab42943efa7cfa876b3b687c6ff36eae867
mm/vmscan: not necessary to re-init the list for each iteration

node_page_list is defined with LIST_HEAD and be cleaned until
list_empty.

So it is not necessary to re-init it again.

[akpm@linux-foundation.org: remove unneeded braces]
Link: https://lkml.kernel.org/r/20220426021743.21007-1-richard.weiyang@gmail.com
Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/vmscan.c