diff mbox series

mm/swap: fix confusing comment in folio_mark_accessed

Message ID 20220311141519.59948-1-libang.linuxer@gmail.com (mailing list archive)
State New
Headers show
Series mm/swap: fix confusing comment in folio_mark_accessed | expand

Commit Message

Bang Li March 11, 2022, 2:15 p.m. UTC
For unevictable pages, we don't need mark them.

Signed-off-by: Bang Li <libang.linuxer@gmail.com>
---
 mm/swap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/mm/swap.c b/mm/swap.c
index 00804ea244e1..9d91ce23ea18 100644
--- a/mm/swap.c
+++ b/mm/swap.c
@@ -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)) {
 		/*