Re: [PATCH 1/2] block: add bio_iov_iter_get_pages()
From: Christoph Hellwig
Date: Tue Nov 01 2016 - 10:19:49 EST
On Tue, Nov 01, 2016 at 09:05:00AM +0800, Ming Lei wrote:
> > + size = iov_iter_get_pages(iter, pages, LONG_MAX, nr_pages, &offset);
>
> BTW, if there is one multi-page version of get_user_pages_fast() and
> iov_iter_get_pages(), size of page array can be reduced too.
There isn't at the moment. I have some plans for it, but it will require
lots of mm and arch changes, so I'd like to keep it separate.