mm/filemap: Add readahead_folio()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 27 Apr 2021 20:37:09 +0000 (16:37 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 18 Oct 2021 11:49:40 +0000 (07:49 -0400)
commit9bf70167e3c61473b95f40771decc3778bf0fb9f
tree8bd91ec6eeb58a0d896ed87193fab73626601a0d
parentf705bf84eab2aa3b9842974b8443587727ccb23a
mm/filemap: Add readahead_folio()

The pointers stored in the page cache are folios, by definition.
This change comes with a behaviour change -- callers of readahead_folio()
are no longer required to put the page reference themselves.  This matches
how readpage works, rather than matching how readpages used to work.

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>
include/linux/pagemap.h