aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/aoe/aoecmd.c
diff options
context:
space:
mode:
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}