Skip to contentSkip to conversation

mm-zswap-avoid-unnecessary-page-scanning.patch removed from -mm tree

merged [email protected] 1 participant 1 message Nov 13, 2013

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

Subject: [merged] mm-zswap-avoid-unnecessary-page-scanning.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Wed, 13 Nov 2013 12:38:52 -0800

The patch titled
Subject: mm/zswap: avoid unnecessary page scanning
has been removed from the -mm tree. Its filename was
mm-zswap-avoid-unnecessary-page-scanning.patch

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

------------------------------------------------------
From: Weijie Yang <[email protected]>
Subject: mm/zswap: avoid unnecessary page scanning

Add SetPageReclaim() before __swap_writepage() so that page can be moved to the tail of the inactive list, which can avoid unnecessary page scanning as this page was reclaimed by swap subsystem before.

---

 mm/zswap.c |    3 +++
 1 file changed, 3 insertions(+)
mm/zswap.c renamed from mm/zswap.c~mm-zswap-avoid-unnecessary-page-scanning +3 -0
diff -puN mm/zswap.c~mm-zswap-avoid-unnecessary-page-scanning mm/zswap.c
@@ -556,6 +556,9 @@ static int zswap_writeback_entry(struct
 		SetPageUptodate(page);
 	}
 
+	/* move it to the tail of the inactive list after end_writeback */
+	SetPageReclaim(page);
+
 	/* start writeback */
 	__swap_writepage(page, &wbc, end_swap_bio_write);
 	page_cache_release(page);

_

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

origin.patch