]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
block: use bio_add_page in bio_iov_iter_get_pages
authorChristoph Hellwig <hch@lst.de>
Thu, 20 Sep 2018 06:28:21 +0000 (08:28 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 20 Sep 2018 15:11:40 +0000 (09:11 -0600)
commit576ed9135489c723fb39b97c4e2c73428d06dd78
tree5613ccf17664796b77fe3461c2d2f3c76407a1ab
parentc8765de0adfcaaf4ffb2d951e07444f00ffa9453
block: use bio_add_page in bio_iov_iter_get_pages

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 physically contiguous pages once support for multipath bio_vecs is
merged.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio.c