Skip to contentSkip to conversation

mm: Fix incomplete comment in lru_cache_add_inactive_or_unevictable()

PATCH Applied Miaohe Lin 1 participant 1 message Sep 27, 2020 Memory management

lore
Share & tools
lore

Miaohe Lin

author
#0 lore raw

PATCH 1/1 mm: Fix incomplete comment in lru_cache_add_inactive_or_unevictable()

Since commit 9c4e6b1a7027 ("mm, mlock, vmscan: no more skipping pagevecs"), unevictable pages do not goes directly back onto zone's unevictable list.

---
 mm/swap.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
mm/swap.c +1 -3
index 7e79829a2e73..0eb057141a04 100644
@@ -481,9 +481,7 @@ EXPORT_SYMBOL(lru_cache_add);
  * @vma:   vma in which page is mapped for determining reclaimability
  *
  * Place @page on the inactive or unevictable LRU list, depending on its
- * evictability.  Note that if the page is not evictable, it goes
- * directly back onto it's zone's unevictable list, it does NOT use a
- * per cpu pagevec.
+ * evictability.
  */
 void lru_cache_add_inactive_or_unevictable(struct page *page,
 					 struct vm_area_struct *vma)
Signature · 1 line
2.19.1