mm: Pass info, not iter, into filemap_get_pages()
authorDavid Howells <dhowells@redhat.com>
Wed, 8 Feb 2023 18:18:17 +0000 (18:18 +0000)
committerDavid Howells <dhowells@redhat.com>
Tue, 14 Feb 2023 15:59:48 +0000 (15:59 +0000)
commit78e11ab5adf7050294a5be5a96716a2218fce0a2
tree715c903b35bd5558106467abba6c49a203d1cce3
parent4ec5183ec48656cec489c49f989c508b68b518e3
mm: Pass info, not iter, into filemap_get_pages()

filemap_get_pages() and a number of functions that it calls take an
iterator to provide two things: the number of bytes to be got from the file
specified and whether partially uptodate pages are allowed.  Change these
functions so that this information is passed in directly.  This allows it
to be called without having an iterator to hand.

Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
cc: Jens Axboe <axboe@kernel.dk>
cc: Christoph Hellwig <hch@lst.de>
cc: Matthew Wilcox <willy@infradead.org>
cc: Al Viro <viro@zeniv.linux.org.uk>
cc: David Hildenbrand <david@redhat.com>
cc: John Hubbard <jhubbard@nvidia.com>
cc: linux-mm@kvack.org
cc: linux-block@vger.kernel.org
cc: linux-fsdevel@vger.kernel.org
mm/filemap.c