summaryrefslogtreecommitdiffstats
path: root/mm/swap.c
diff options
context:
space:
mode:
authorMiaohe Lin <linmiaohe@huawei.com>2020-10-13 16:52:24 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2020-10-13 18:38:30 -0700
commit12eab4289d3203be384d0c0733670c2c9daa1880 (patch)
tree3fbf189a4dfe14ef4be0eff038a904e38da98f67 /mm/swap.c
parent548d9782bd844048bc6b5159c848772a5fe3da32 (diff)
downloadlinux-12eab4289d3203be384d0c0733670c2c9daa1880.tar.gz
linux-12eab4289d3203be384d0c0733670c2c9daa1880.tar.bz2
linux-12eab4289d3203be384d0c0733670c2c9daa1880.zip
mm/swap.c: 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. Signed-off-by: Miaohe Lin <linmiaohe@huawei.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Cc: Shakeel Butt <shakeelb@google.com> Link: https://lkml.kernel.org/r/20200927122209.59328-1-linmiaohe@huawei.com Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/swap.c')
-rw-r--r--mm/swap.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/mm/swap.c b/mm/swap.c
index 43288a0e11bc..f41ccd8eae94 100644
--- a/mm/swap.c
+++ b/mm/swap.c
@@ -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)