Skip to contentSkip to conversation

mm-vmscan-not-necessary-to-re-init-the-list-for-each-iteration.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message May 13, 2022

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: mm/vmscan: not necessary to re-init the list for each iteration
has been removed from the -mm tree. Its filename was
mm-vmscan-not-necessary-to-re-init-the-list-for-each-iteration.patch

This patch was dropped because it was merged into the mm-stable branch\nof git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Wei Yang <[email protected]>
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.

---

 mm/vmscan.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
mm/vmscan.c renamed from mm/vmscan.c~mm-vmscan-not-necessary-to-re-init-the-list-for-each-iteration +1 -3
@@ -2553,10 +2553,8 @@ unsigned long reclaim_pages(struct 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);

_

Patches currently in -mm which might be from [email protected] are