diff options
author | Vishal Moola (Oracle) <vishal.moola@gmail.com> | 2022-11-01 18:53:26 +0100 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2022-12-12 03:12:13 +0100 |
commit | 6e1ca48d0669b0f5efcbaa051b23cd8e651a1614 (patch) | |
tree | ef7c2a5ab48673455618d012f06da0ead93a8545 /mm/workingset.c | |
parent | khugepage: replace lru_cache_add() with folio_add_lru() (diff) | |
download | linux-6e1ca48d0669b0f5efcbaa051b23cd8e651a1614.tar.xz linux-6e1ca48d0669b0f5efcbaa051b23cd8e651a1614.zip |
folio-compat: remove lru_cache_add()
There are no longer any callers of lru_cache_add(), so remove it. This
saves 79 bytes of kernel text. Also cleanup some comments such that
they reference the new folio_add_lru() instead.
Link: https://lkml.kernel.org/r/20221101175326.13265-6-vishal.moola@gmail.com
Signed-off-by: Vishal Moola (Oracle) <vishal.moola@gmail.com>
Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Mike Kravetz <mike.kravetz@oracle.com>
Cc: Miklos Szeredi <mszeredi@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/workingset.c')
-rw-r--r-- | mm/workingset.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mm/workingset.c b/mm/workingset.c index d2d02978588c..1a86645b7b3c 100644 --- a/mm/workingset.c +++ b/mm/workingset.c @@ -492,7 +492,10 @@ void workingset_refault(struct folio *folio, void *shadow) /* Folio was active prior to eviction */ if (workingset) { folio_set_workingset(folio); - /* XXX: Move to lru_cache_add() when it supports new vs putback */ + /* + * XXX: Move to folio_add_lru() when it supports new vs + * putback + */ lru_note_cost_refault(folio); mod_lruvec_state(lruvec, WORKINGSET_RESTORE_BASE + file, nr); } |