]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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>
Sun, 15 Aug 2021 20:35:50 +0000 (16:35 -0400)
commitf4f991224133199a9cc83b7f0f1939ff6ef86e62
treeefe5a5d5eafbd809f5e7b5f0c2e6295fcfefac21
parent7e90b1b2b9139297f2e4f5b2489a2b417723b47f
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