aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/aoe/aoecmd.c
diff options
context:
space:
mode:
authorKent Overstreet <koverstreet@google.com>2012-09-04 18:23:14 -0400
committerKent Overstreet <koverstreet@google.com>2013-03-23 17:15:31 -0400
commit4f2ac93c175c4922bdddbfec6cad94b32cea0070 (patch)
treece9df811f8a59c3af8486ee20fdc9d36fe5bfd25 /drivers/block/aoe/aoecmd.c
parent5b83636ae3c3b4f87d02a5929ad4dee831534db0 (diff)
block: Remove bi_idx references
For immutable bvecs, all bi_idx usage needs to be audited - so here we're removing all the unnecessary uses. Most of these are places where it was being initialized on a bio that was just allocated, a few others are conversions to standard macros. Signed-off-by: Kent Overstreet <koverstreet@google.com> CC: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block/aoe/aoecmd.c')
-rw-r--r--drivers/block/aoe/aoecmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/aoe/aoecmd.c b/drivers/block/aoe/aoecmd.c
index 25ef5c014fca..8188ad131b97 100644
--- a/drivers/block/aoe/aoecmd.c
+++ b/drivers/block/aoe/aoecmd.c
@@ -927,7 +927,7 @@ bufinit(struct buf *buf, struct request *rq, struct bio *bio)
927 buf->resid = bio->bi_size; 927 buf->resid = bio->bi_size;
928 buf->sector = bio->bi_sector; 928 buf->sector = bio->bi_sector;
929 bio_pageinc(bio); 929 bio_pageinc(bio);
930 buf->bv = bv = &bio->bi_io_vec[bio->bi_idx]; 930 buf->bv = bio_iovec(bio);
931 buf->bv_resid = bv->bv_len; 931 buf->bv_resid = bv->bv_len;
932 WARN_ON(buf->bv_resid == 0); 932 WARN_ON(buf->bv_resid == 0);
933} 933}