block: bounce: avoid direct access to bvec table
authorMing Lei <ming.lei@redhat.com>
Mon, 18 Dec 2017 12:22:06 +0000 (20:22 +0800)
committerJens Axboe <axboe@kernel.dk>
Sat, 6 Jan 2018 16:18:00 +0000 (09:18 -0700)
commit7891f05cbf4944a5436491d66de2be7533089aea
treed5451cbcc52554eeb545a148e0cd632ddec94438
parentc45a8f2def865e0d75b45618aef2963e15725cc4
block: bounce: avoid direct access to bvec table

We will support multipage bvecs in the future, so change to iterator way
for getting bv_page of bvec from original bio.

Cc: Matthew Wilcox <willy@infradead.org>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bounce.c