mm/filemap: Convert mapping_get_entry to return a folio
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 16 Dec 2020 04:22:38 +0000 (23:22 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 18 Oct 2021 11:49:40 +0000 (07:49 -0400)
commitbca65eeab1db74f83661a49ebdaf87414fc4938e
treeefabcb8b39a02dabfde77117bcaf23ea8b12cb79
parent9dd3d069406cea073fc633e77bc59abbfde8c6c4
mm/filemap: Convert mapping_get_entry to return a folio

The pagecache only contains folios, so indicate that this is definitely
not a tail page.  Shrinks mapping_get_entry() by 56 bytes, but grows
pagecache_get_page() by 21 bytes as gcc makes slightly different hot/cold
code decisions.  A net reduction of 35 bytes of text.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: David Howells <dhowells@redhat.com>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
mm/filemap.c