aboutsummaryrefslogtreecommitdiffstats
path: root/arch/xtensa/platforms/iss/simdisk.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/xtensa/platforms/iss/simdisk.c')
-rw-r--r--arch/xtensa/platforms/iss/simdisk.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/arch/xtensa/platforms/iss/simdisk.c b/arch/xtensa/platforms/iss/simdisk.c
index 8c6e819cd8ed..48eebacdf5fe 100644
--- a/arch/xtensa/platforms/iss/simdisk.c
+++ b/arch/xtensa/platforms/iss/simdisk.c
@@ -103,18 +103,18 @@ static void simdisk_transfer(struct simdisk *dev, unsigned long sector,
103 103
104static int simdisk_xfer_bio(struct simdisk *dev, struct bio *bio) 104static int simdisk_xfer_bio(struct simdisk *dev, struct bio *bio)
105{ 105{
106 int i; 106 struct bio_vec bvec;
107 struct bio_vec *bvec; 107 struct bvec_iter iter;
108 sector_t sector = bio->bi_sector; 108 sector_t sector = bio->bi_iter.bi_sector;
109 109
110 bio_for_each_segment(bvec, bio, i) { 110 bio_for_each_segment(bvec, bio, iter) {
111 char *buffer = __bio_kmap_atomic(bio, i); 111 char *buffer = __bio_kmap_atomic(bio, iter);
112 unsigned len = bvec->bv_len >> SECTOR_SHIFT; 112 unsigned len = bvec.bv_len >> SECTOR_SHIFT;
113 113
114 simdisk_transfer(dev, sector, len, buffer, 114 simdisk_transfer(dev, sector, len, buffer,
115 bio_data_dir(bio) == WRITE); 115 bio_data_dir(bio) == WRITE);
116 sector += len; 116 sector += len;
117 __bio_kunmap_atomic(bio); 117 __bio_kunmap_atomic(buffer);
118 } 118 }
119 return 0; 119 return 0;
120} 120}