Re: [PATCH 3/3] block: use bio_add_page in bio_iov_iter_get_pages

2018-06-04 Thread Ming Lei
On Tue, Jun 05, 2018 at 11:41:19AM +0800, Ming Lei wrote: > On Mon, Jun 04, 2018 at 03:58:53PM +0200, Christoph Hellwig wrote: > > Replace a nasty hack with a different nasty hack to prepare for multipage > > bio_vecs. By moving the temporary page array as far up as possible in > > the space

Re: [PATCH 3/3] block: use bio_add_page in bio_iov_iter_get_pages

2018-06-04 Thread Ming Lei
On Mon, Jun 04, 2018 at 03:58:53PM +0200, Christoph Hellwig wrote: > Replace a nasty hack with a different nasty hack to prepare for multipage > bio_vecs. By moving the temporary page array as far up as possible in > the space allocated for the bio_vec array we can iterate forward over it > and

[PATCH 3/3] block: use bio_add_page in bio_iov_iter_get_pages

2018-06-04 Thread Christoph Hellwig
Replace a nasty hack with a different nasty hack to prepare for multipage bio_vecs. By moving the temporary page array as far up as possible in the space allocated for the bio_vec array we can iterate forward over it and thus use bio_add_page. Using bio_add_page means we'll be able to merge