diff options
author | Vishal Moola (Oracle) <vishal.moola@gmail.com> | 2022-11-01 10:53:26 -0700 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2022-12-11 18:12:13 -0800 |
commit | 6e1ca48d0669b0f5efcbaa051b23cd8e651a1614 (patch) | |
tree | ef7c2a5ab48673455618d012f06da0ead93a8545 /mm/workingset.c | |
parent | 284a344ed19dc92526024d062b30f90774fea50f (diff) | |
download | linux-6e1ca48d0669b0f5efcbaa051b23cd8e651a1614.tar.gz linux-6e1ca48d0669b0f5efcbaa051b23cd8e651a1614.tar.bz2 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); } |