diff options
Diffstat (limited to 'drivers/md/bcache/util.c')
-rw-r--r-- | drivers/md/bcache/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/bcache/util.c b/drivers/md/bcache/util.c index 462214eeacbe..c57621e49dc0 100644 --- a/drivers/md/bcache/util.c +++ b/drivers/md/bcache/util.c | |||
@@ -218,10 +218,10 @@ uint64_t bch_next_delay(struct bch_ratelimit *d, uint64_t done) | |||
218 | 218 | ||
219 | void bch_bio_map(struct bio *bio, void *base) | 219 | void bch_bio_map(struct bio *bio, void *base) |
220 | { | 220 | { |
221 | size_t size = bio->bi_size; | 221 | size_t size = bio->bi_iter.bi_size; |
222 | struct bio_vec *bv = bio->bi_io_vec; | 222 | struct bio_vec *bv = bio->bi_io_vec; |
223 | 223 | ||
224 | BUG_ON(!bio->bi_size); | 224 | BUG_ON(!bio->bi_iter.bi_size); |
225 | BUG_ON(bio->bi_vcnt); | 225 | BUG_ON(bio->bi_vcnt); |
226 | 226 | ||
227 | bv->bv_offset = base ? ((unsigned long) base) % PAGE_SIZE : 0; | 227 | bv->bv_offset = base ? ((unsigned long) base) % PAGE_SIZE : 0; |