projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
717aeab
)
mm/vmscan: not necessary to re-init the list for each iteration
author
Wei Yang
<richard.weiyang@gmail.com>
Fri, 13 May 2022 03:22:59 +0000
(20:22 -0700)
committer
Andrew Morton
<akpm@linux-foundation.org>
Fri, 13 May 2022 14:20:13 +0000
(07:20 -0700)
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
patch
|
blob
|
history
diff --git
a/mm/vmscan.c
b/mm/vmscan.c
index 5ac0a71dc0dfcc0a24a226e4d9f65f8ec91070af..726f5ce366dafefdea9123580c2a516717363f30 100644
(file)
--- a/
mm/vmscan.c
+++ b/
mm/vmscan.c
@@
-2553,10
+2553,8
@@
unsigned long reclaim_pages(struct list_head *page_list)
while (!list_empty(page_list)) {
page = lru_to_page(page_list);
- if (nid == NUMA_NO_NODE)
{
+ if (nid == NUMA_NO_NODE)
nid = page_to_nid(page);
- INIT_LIST_HEAD(&node_page_list);
- }
if (nid == page_to_nid(page)) {
ClearPageActive(page);