mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
mm/swap: fix confusing comment in folio_mark_accessed
For unevictable pages, we don't need mark them. Link: https://lkml.kernel.org/r/20220311141519.59948-1-libang.linuxer@gmail.com Signed-off-by: Bang Li <libang.linuxer@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
73fd16d808
commit
914c32e45d
1 changed files with 1 additions and 1 deletions
|
@ -425,7 +425,7 @@ void folio_mark_accessed(struct folio *folio)
|
||||||
/*
|
/*
|
||||||
* Unevictable pages are on the "LRU_UNEVICTABLE" list. But,
|
* Unevictable pages are on the "LRU_UNEVICTABLE" list. But,
|
||||||
* this list is never rotated or maintained, so marking an
|
* 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)) {
|
} else if (!folio_test_active(folio)) {
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue