]> git.baikalelectronics.ru Git - kernel.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)
commit956b6e8353966b7476ea15220b5fa99c382df410
tree5613ccf17664796b77fe3461c2d2f3c76407a1ab
parent2375df9c78d8d2df3fb16f36e2ad3e80e86d911f
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