OSDN Git Service

mm: convert find_get_incore_page() to filemap_get_incore_folio()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 19 Oct 2022 18:33:31 +0000 (19:33 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 9 Nov 2022 01:37:18 +0000 (17:37 -0800)
commit524984ff66ee4b63264dffe568c3547a20b4136c
tree3a49ec8c2ede1958bb6dbd4a426b68cfe7f25e0e
parentdd8095b15a6034165bc48da1eb6d0acc73c1558a
mm: convert find_get_incore_page() to filemap_get_incore_folio()

Return the containing folio instead of the precise page.  One of the
callers wants the folio and the other can do the folio->page conversion
itself.  Nets 442 bytes of text size reduction, 478 bytes removed and 36
bytes added.

Link: https://lkml.kernel.org/r/20221019183332.2802139-4-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/memcontrol.c
mm/mincore.c
mm/swap.h
mm/swap_state.c