linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] mm/vmscan: not necessary to re-init the list for each iteration
@ 2022-04-26  2:17 Wei Yang
  2022-04-26  2:17 ` [PATCH 2/3] mm/vmscan: filter empty page_list at the beginning Wei Yang
  2022-04-26  2:17 ` [PATCH 3/3] mm/vmscan: not use NUMA_NO_NODE as indicator of page on different node Wei Yang
  0 siblings, 2 replies; 6+ messages in thread
From: Wei Yang @ 2022-04-26  2:17 UTC (permalink / raw)
  To: akpm; +Cc: linux-mm, Wei Yang

node_page_list is defined with LIST_HEAD and be cleaned until
list_empty.

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

Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
---
 mm/vmscan.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/mm/vmscan.c b/mm/vmscan.c
index 0b7cc9309e70..9b5ce5778e9b 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -2539,7 +2539,6 @@ unsigned long reclaim_pages(struct list_head *page_list)
 		page = lru_to_page(page_list);
 		if (nid == NUMA_NO_NODE) {
 			nid = page_to_nid(page);
-			INIT_LIST_HEAD(&node_page_list);
 		}
 
 		if (nid == page_to_nid(page)) {
-- 
2.33.1



^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-04-27 23:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-26  2:17 [PATCH 1/3] mm/vmscan: not necessary to re-init the list for each iteration Wei Yang
2022-04-26  2:17 ` [PATCH 2/3] mm/vmscan: filter empty page_list at the beginning Wei Yang
2022-04-26 21:47   ` Andrew Morton
2022-04-27 23:25     ` Wei Yang
2022-04-27 23:29       ` Andrew Morton
2022-04-26  2:17 ` [PATCH 3/3] mm/vmscan: not use NUMA_NO_NODE as indicator of page on different node Wei Yang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).