Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1378768
| From | Ming Lei <tom.leiming@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v1 06/27] block: floppy: use bio_set_vec_table() |
| Date | 2016-04-14 14:20 +0200 |
| Message-ID | <rnOpC-1sB-47@gated-at.bofh.it> (permalink) |
| References | <rnOfT-1oW-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Signed-off-by: Ming Lei <tom.leiming@gmail.com> --- drivers/block/floppy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/block/floppy.c b/drivers/block/floppy.c index 84708a5..b5b0e68 100644 --- a/drivers/block/floppy.c +++ b/drivers/block/floppy.c @@ -3811,7 +3811,7 @@ static int __floppy_read_block_0(struct block_device *bdev, int drive) cbdata.drive = drive; bio_init(&bio); - bio.bi_io_vec = &bio_vec; + bio_set_vec_table(&bio, &bio_vec, 1); bio_vec.bv_page = page; bio_vec.bv_len = size; bio_vec.bv_offset = 0; -- 1.9.1
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v1 00/27] block: cleanup direct access to .bi_vcnt & .bi_io_vec Ming Lei <tom.leiming@gmail.com> - 2016-04-14 14:20 +0200 [PATCH v1 08/27] staging: lustre: avoid to use bio->bi_vcnt directly Ming Lei <tom.leiming@gmail.com> - 2016-04-14 14:20 +0200 [PATCH v1 06/27] block: floppy: use bio_set_vec_table() Ming Lei <tom.leiming@gmail.com> - 2016-04-14 14:20 +0200 [PATCH v1 05/27] block: pktcdvd: use bio_get_base_vec() to retrive bvec table Ming Lei <tom.leiming@gmail.com> - 2016-04-14 14:20 +0200 [PATCH v1 11/27] bcache: io.c: use bio_set_vec_table Ming Lei <tom.leiming@gmail.com> - 2016-04-14 14:20 +0200 [PATCH v1 01/27] block: bio: introduce 3 helpers for cleanup Ming Lei <tom.leiming@gmail.com> - 2016-04-14 14:20 +0200
csiph-web