]> Git Repo - linux.git/commit - drivers/md/multipath.c
block: bio: pass bvec table to bio_init()
authorMing Lei <[email protected]>
Tue, 22 Nov 2016 15:57:21 +0000 (08:57 -0700)
committerJens Axboe <[email protected]>
Tue, 22 Nov 2016 15:57:21 +0000 (08:57 -0700)
commit3a83f4677539bce8eaa2bca9ee9c20e172d7ab04
treeedb5ffeed2c07c342bd6d9adb0180fab472c1666
parent9a794fb9bddeda0b8c8c13858038318f3cbd4b7e
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: Ming Lei <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Fixed up the new O_DIRECT cases.

Signed-off-by: Jens Axboe <[email protected]>
17 files changed:
block/bio.c
drivers/block/floppy.c
drivers/md/bcache/io.c
drivers/md/bcache/journal.c
drivers/md/bcache/movinggc.c
drivers/md/bcache/request.c
drivers/md/bcache/super.c
drivers/md/bcache/writeback.c
drivers/md/dm-bufio.c
drivers/md/dm.c
drivers/md/multipath.c
drivers/md/raid5-cache.c
drivers/md/raid5.c
drivers/nvme/target/io-cmd.c
fs/block_dev.c
fs/logfs/dev_bdev.c
include/linux/bio.h
This page took 0.055621 seconds and 4 git commands to generate.