The patch titled Subject: mm/vmscan: not necessary to re-init the list for each iteration has been added to the -mm tree. Its filename is mm-vmscan-not-necessary-to-re-init-the-list-for-each-iteration.patch This patch should soon appear at https://ozlabs.org/~akpm/mmots/broken-out/mm-vmscan-not-necessary-to-re-init-the-list-for-each-iteration.patch and later at https://ozlabs.org/~akpm/mmotm/broken-out/mm-vmscan-not-necessary-to-re-init-the-list-for-each-iteration.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Wei Yang <richard.weiyang@xxxxxxxxx> Subject: 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. Link: https://lkml.kernel.org/r/20220426021743.21007-1-richard.weiyang@xxxxxxxxx Signed-off-by: Wei Yang <richard.weiyang@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/vmscan.c | 1 - 1 file changed, 1 deletion(-) --- a/mm/vmscan.c~mm-vmscan-not-necessary-to-re-init-the-list-for-each-iteration +++ a/mm/vmscan.c @@ -2574,7 +2574,6 @@ unsigned long reclaim_pages(struct 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)) { _ Patches currently in -mm which might be from richard.weiyang@xxxxxxxxx are mm-memcg-mz-already-removed-from-rb_tree-if-not-null.patch mm-memcg-set-memcg-after-css-verified-and-got-reference.patch mm-memcg-set-pos-explicitly-for-reclaim-and-reclaim.patch mm-memcg-move-generation-assignment-and-comparison-together.patch mm-memcg-non-hierarchical-mode-is-deprecated.patch mm-page_alloc-add-same-penalty-is-enough-to-get-round-robin-order.patch mm-page_alloc-add-same-penalty-is-enough-to-get-round-robin-order-v3.patch mm-vmscan-reclaim-only-affects-managed_zones.patch mm-vmscan-make-sure-wakeup_kswapd-with-managed-zone.patch mm-vmscan-make-sure-wakeup_kswapd-with-managed-zone-v2.patch mm-vmscan-sc-reclaim_idx-must-be-a-valid-zone-index.patch mm-vmscan-not-necessary-to-re-init-the-list-for-each-iteration.patch