Skip to content
Commit 3a83f467 authored by Ming Lei's avatar Ming Lei Committed by Jens Axboe
Browse files

block: bio: pass bvec table to bio_init()



Some drivers often use external bvec table, so introduce
this helper for this case. It is always safe to access the
bio->bi_io_vec in this way for this case.

After converting to this usage, it will becomes a bit easier
to evaluate the remaining direct access to bio->bi_io_vec,
so it can help to prepare for the following multipage bvec
support.

Signed-off-by: default avatarMing Lei <tom.leiming@gmail.com>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>

Fixed up the new O_DIRECT cases.

Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent 9a794fb9
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment