diff options
Diffstat (limited to 'include/linux/blkdev.h')
-rw-r--r-- | include/linux/blkdev.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 1b135d49b279..0375654adb28 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h | |||
@@ -291,6 +291,7 @@ struct queue_limits { | |||
291 | unsigned char discard_misaligned; | 291 | unsigned char discard_misaligned; |
292 | unsigned char cluster; | 292 | unsigned char cluster; |
293 | unsigned char discard_zeroes_data; | 293 | unsigned char discard_zeroes_data; |
294 | unsigned char raid_partial_stripes_expensive; | ||
294 | }; | 295 | }; |
295 | 296 | ||
296 | struct request_queue { | 297 | struct request_queue { |
@@ -735,7 +736,7 @@ struct rq_map_data { | |||
735 | }; | 736 | }; |
736 | 737 | ||
737 | struct req_iterator { | 738 | struct req_iterator { |
738 | int i; | 739 | struct bvec_iter iter; |
739 | struct bio *bio; | 740 | struct bio *bio; |
740 | }; | 741 | }; |
741 | 742 | ||
@@ -748,10 +749,11 @@ struct req_iterator { | |||
748 | 749 | ||
749 | #define rq_for_each_segment(bvl, _rq, _iter) \ | 750 | #define rq_for_each_segment(bvl, _rq, _iter) \ |
750 | __rq_for_each_bio(_iter.bio, _rq) \ | 751 | __rq_for_each_bio(_iter.bio, _rq) \ |
751 | bio_for_each_segment(bvl, _iter.bio, _iter.i) | 752 | bio_for_each_segment(bvl, _iter.bio, _iter.iter) |
752 | 753 | ||
753 | #define rq_iter_last(rq, _iter) \ | 754 | #define rq_iter_last(bvec, _iter) \ |
754 | (_iter.bio->bi_next == NULL && _iter.i == _iter.bio->bi_vcnt-1) | 755 | (_iter.bio->bi_next == NULL && \ |
756 | bio_iter_last(bvec, _iter.iter)) | ||
755 | 757 | ||
756 | #ifndef ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE | 758 | #ifndef ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE |
757 | # error "You should define ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE for your platform" | 759 | # error "You should define ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE for your platform" |