• David Howells's avatar
    mm: Pass info, not iter, into filemap_get_pages() · dd5b9d00
    David Howells authored
    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: default avatarDavid Howells <dhowells@redhat.com>
    Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
    Reviewed-by: default avatarJens 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
    Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
    dd5b9d00
filemap.c 112 KB