summaryrefslogtreecommitdiff
path: root/block/blk-throttle.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2018-09-20 08:28:21 +0200
committerJens Axboe <axboe@kernel.dk>2018-09-20 09:11:40 -0600
commit576ed9135489c723fb39b97c4e2c73428d06dd78 (patch)
tree5613ccf17664796b77fe3461c2d2f3c76407a1ab /block/blk-throttle.c
parentc8765de0adfcaaf4ffb2d951e07444f00ffa9453 (diff)
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>
Diffstat (limited to 'block/blk-throttle.c')
0 files changed, 0 insertions, 0 deletions