mm: use filemap_get_entry in filemap_get_incore_folio
authorChristoph Hellwig <hch@lst.de>
Tue, 7 Mar 2023 14:34:06 +0000 (15:34 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 6 Apr 2023 02:42:41 +0000 (19:42 -0700)
commit097b3e59b25e61481d93c6da5472319c0b7249e8
treeda7359770405cd48f10ebfa82d06cdff72aba826
parent263e721e3ba1f3b42ad61aed3d504f3c8c9c0eb6
mm: use filemap_get_entry in filemap_get_incore_folio

filemap_get_incore_folio wants to look at the details of xa_is_value
entries, but doesn't need any of the other logic in filemap_get_folio.
Switch it to use the lower-level filemap_get_entry interface.

Link: https://lkml.kernel.org/r/20230307143410.28031-4-hch@lst.de
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Andreas Gruenbacher <agruenba@redhat.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: Ryusuke Konishi <konishi.ryusuke@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/swap_state.c