block: use memcpy_from_bvec in __blk_queue_bounce
authorChristoph Hellwig <hch@lst.de>
Tue, 27 Jul 2021 05:56:44 +0000 (07:56 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 2 Aug 2021 19:37:28 +0000 (13:37 -0600)
commit4aebe8596ab77b0b7125e3584ed0259c4657a06d
tree9569fc69dd30347a906c90096695c8c64844d674
parentd24920e20ca66780d4059e2ece9f858cbae02310
block: use memcpy_from_bvec in __blk_queue_bounce

Rewrite the actual bounce buffering loop in __blk_queue_bounce to that
the memcpy_to_bvec helper can be used to perform the data copies.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Link: https://lore.kernel.org/r/20210727055646.118787-14-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bounce.c