Skip to contentSkip to conversation

mm/swap: fix confusing comment in folio_mark_accessed

PATCH Applied Bang Li 1 participant 1 message Mar 11, 2022 Memory management

lore
Share & tools
lore

Bang Li

author
#0 lore raw

PATCH 1/1 mm/swap: fix confusing comment in folio_mark_accessed

For unevictable pages, we don't need mark them.

---
 mm/swap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/swap.c +1 -1
index 00804ea244e1..9d91ce23ea18 100644
@@ -423,7 +423,7 @@ void folio_mark_accessed(struct folio *folio)
 		/*
 		 * Unevictable pages are on the "LRU_UNEVICTABLE" list. But,
 		 * this list is never rotated or maintained, so marking an
-		 * evictable page accessed has no effect.
+		 * unevictable page accessed has no effect.
 		 */
 	} else if (!folio_test_active(folio)) {
 		/*
Signature · 1 line
2.25.1