filemap: Return only folios from find_get_entries()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 2 Sep 2020 03:17:50 +0000 (23:17 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Sat, 8 Jan 2022 05:28:41 +0000 (00:28 -0500)
commit0e499ed3d7a216706e02eeded562627d3e69dcfd
tree0bf33ceb48d5530c29c332c99def3b47aeadf53f
parent25d6a23e8d280861dfe81193e18143afb2c0d777
filemap: Return only folios from find_get_entries()

The callers have all been converted to work on folios, so convert
find_get_entries() to return a batch of folios instead of pages.
We also now return multiple large folios in a single call.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: William Kucharski <william.kucharski@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
include/linux/pagemap.h
mm/filemap.c
mm/internal.h
mm/shmem.c
mm/truncate.c