block: Abstract out bvec iterator
[linux-2.6-block.git] / arch / m68k / emu / nfblock.c
index 0721858fbd1ef6618b288bcbea33369995e35653..0a9d0b3c794b8c600d74f8bf5a7b7c116e86eb6c 100644 (file)
@@ -64,7 +64,7 @@ static void nfhd_make_request(struct request_queue *queue, struct bio *bio)
        struct nfhd_device *dev = queue->queuedata;
        struct bio_vec *bvec;
        int i, dir, len, shift;
-       sector_t sec = bio->bi_sector;
+       sector_t sec = bio->bi_iter.bi_sector;
 
        dir = bio_data_dir(bio);
        shift = dev->bshift;