diff options
Diffstat (limited to 'include/linux/blkdev.h')
-rw-r--r-- | include/linux/blkdev.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 1b135d49b279..337b92a54658 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h | |||
@@ -735,7 +735,7 @@ struct rq_map_data { | |||
735 | }; | 735 | }; |
736 | 736 | ||
737 | struct req_iterator { | 737 | struct req_iterator { |
738 | int i; | 738 | struct bvec_iter iter; |
739 | struct bio *bio; | 739 | struct bio *bio; |
740 | }; | 740 | }; |
741 | 741 | ||
@@ -748,10 +748,11 @@ struct req_iterator { | |||
748 | 748 | ||
749 | #define rq_for_each_segment(bvl, _rq, _iter) \ | 749 | #define rq_for_each_segment(bvl, _rq, _iter) \ |
750 | __rq_for_each_bio(_iter.bio, _rq) \ | 750 | __rq_for_each_bio(_iter.bio, _rq) \ |
751 | bio_for_each_segment(bvl, _iter.bio, _iter.i) | 751 | bio_for_each_segment(bvl, _iter.bio, _iter.iter) |
752 | 752 | ||
753 | #define rq_iter_last(rq, _iter) \ | 753 | #define rq_iter_last(rq, _iter) \ |
754 | (_iter.bio->bi_next == NULL && _iter.i == _iter.bio->bi_vcnt-1) | 754 | (_iter.bio->bi_next == NULL && \ |
755 | bio_iter_last(_iter.bio, _iter.iter)) | ||
755 | 756 | ||
756 | #ifndef ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE | 757 | #ifndef ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE |
757 | # error "You should define ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE for your platform" | 758 | # error "You should define ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE for your platform" |