]> git.baikalelectronics.ru Git - kernel.git/commit
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>
Mon, 21 Mar 2022 16:59:03 +0000 (12:59 -0400)
commit48c4d2dc382e40219d42b01efb5bf2b1aa102af7
tree8cb5d7604e0a6c332fa49291a9fcbc04823b4564
parentcd63217184cb0e085a581b98cff64312db0e2f82
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