Re: [PATCH v2 22/26] block: Add bio_alloc_pages()

2012-09-20 Thread Kent Overstreet
On Thu, Sep 20, 2012 at 05:47:11PM -0700, Tejun Heo wrote: > On Mon, Sep 10, 2012 at 05:22:33PM -0700, Kent Overstreet wrote: > > + bio_for_each_segment_all(bv, bio, i) { > > + bv->bv_page = alloc_page(gfp_mask); > > + if (!bv->bv_page) { > > + while (bv--

Re: [PATCH v2 22/26] block: Add bio_alloc_pages()

2012-09-20 Thread Tejun Heo
On Mon, Sep 10, 2012 at 05:22:33PM -0700, Kent Overstreet wrote: > + bio_for_each_segment_all(bv, bio, i) { > + bv->bv_page = alloc_page(gfp_mask); > + if (!bv->bv_page) { > + while (bv-- != bio->bi_io_vec) > +

Re: [PATCH v2 22/26] block: Add bio_alloc_pages()

2012-09-20 Thread Tejun Heo
On Mon, Sep 10, 2012 at 05:22:33PM -0700, Kent Overstreet wrote: + bio_for_each_segment_all(bv, bio, i) { + bv-bv_page = alloc_page(gfp_mask); + if (!bv-bv_page) { + while (bv-- != bio-bi_io_vec) +

Re: [PATCH v2 22/26] block: Add bio_alloc_pages()

2012-09-20 Thread Kent Overstreet
On Thu, Sep 20, 2012 at 05:47:11PM -0700, Tejun Heo wrote: On Mon, Sep 10, 2012 at 05:22:33PM -0700, Kent Overstreet wrote: + bio_for_each_segment_all(bv, bio, i) { + bv-bv_page = alloc_page(gfp_mask); + if (!bv-bv_page) { + while (bv-- !=