Skip to contentSkip to conversation

mm-page_reporting-drop-stale-list-head-check-in-page_reporting_cycle.patch removed from -mm tree

merged [email protected] 1 participant 1 message Oct 16, 2020

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: mm/page_reporting.c: drop stale list head check in page_reporting_cycle
has been removed from the -mm tree. Its filename was
mm-page_reporting-drop-stale-list-head-check-in-page_reporting_cycle.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Wei Yang <[email protected]>
Subject: mm/page_reporting.c: drop stale list head check in page_reporting_cycle

list_for_each_entry_safe() guarantees that we will never stumble over the list head; "&page->lru != list" will always evaluate to true. Let's simplify.

---

 mm/page_reporting.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/page_reporting.c renamed from mm/page_reporting.c~mm-page_reporting-drop-stale-list-head-check-in-page_reporting_cycle +1 -1
@@ -178,7 +178,7 @@ page_reporting_cycle(struct page_reporti
 		 * the new head of the free list before we release the
 		 * zone lock.
 		 */
-		if (&page->lru != list && !list_is_first(&page->lru, list))
+		if (!list_is_first(&page->lru, list))
 			list_rotate_to_front(&page->lru, list);
 
 		/* release lock before waiting on report processing */

_

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