mm/rmap: Turn page_referenced() into folio_referenced()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 21 Jan 2022 16:27:31 +0000 (11:27 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 25 Feb 2022 14:10:23 +0000 (09:10 -0500)
commit16c32677ba12577443c2c8e5e334022c94292dc9
treef100d3891ef5996ba2867593b53f10fa20cffb3b
parentf3087d41ecbfe471f1afa15b8abfed86dda44ccb
mm/rmap: Turn page_referenced() into folio_referenced()

Both its callers pass a page which was previously on an LRU list,
so were passing a folio by definition.  Use the type system to enforce
that and remove a few calls to compound_head().

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
include/linux/rmap.h
mm/page_idle.c
mm/rmap.c
mm/vmscan.c