Message ID | 20220426021743.21007-1-richard.weiyang@gmail.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | [1/3] mm/vmscan: not necessary to re-init the list for each iteration | expand |
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)) {
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(-)