]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit649c9e43315f4022e9f65c9ecf27c3a1f18debee
treefcf2b70a405ace6b0235ddc1afee26ccae06bc7f
parentf64e5ab9de32eacbae5cb4c10996347ce33fb941
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