filemap: Add filemap_get_folios()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 3 Jun 2022 19:30:25 +0000 (15:30 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 29 Jun 2022 12:51:05 +0000 (08:51 -0400)
commitbe0ced5e9cb81a4c2edefd081a7794a1814fb60d
treeafc91df5848bf584e080725e48616c58992a7ef1
parent2bb876b58d593d7f2522ec0f41f20a74fde76822
filemap: Add filemap_get_folios()

This is the equivalent of find_get_pages() but fills a folio_batch
instead of an array of pages.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Acked-by: Christian Brauner (Microsoft) <brauner@kernel.org>
include/linux/pagemap.h
mm/filemap.c