]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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, 16 Aug 2021 03:01:16 +0000 (23:01 -0400)
commit3b80d2aceaaa6e7452501561c13abd51374b337d
tree75c1ab5e879c5f7a89680883ed700dc95b75040f
parent9ac79fccaa04cbe522769be718b67de69db9b94b
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