aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/blkdev.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/blkdev.h')
-rw-r--r--include/linux/blkdev.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index 1b135d49b279..8678c4322b44 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -95,10 +95,7 @@ enum rq_cmd_type_bits {
95 * as well! 95 * as well!
96 */ 96 */
97struct request { 97struct request {
98 union { 98 struct list_head queuelist;
99 struct list_head queuelist;
100 struct llist_node ll_list;
101 };
102 union { 99 union {
103 struct call_single_data csd; 100 struct call_single_data csd;
104 struct work_struct mq_flush_data; 101 struct work_struct mq_flush_data;
@@ -291,6 +288,7 @@ struct queue_limits {
291 unsigned char discard_misaligned; 288 unsigned char discard_misaligned;
292 unsigned char cluster; 289 unsigned char cluster;
293 unsigned char discard_zeroes_data; 290 unsigned char discard_zeroes_data;
291 unsigned char raid_partial_stripes_expensive;
294}; 292};
295 293
296struct request_queue { 294struct request_queue {
@@ -735,7 +733,7 @@ struct rq_map_data {
735}; 733};
736 734
737struct req_iterator { 735struct req_iterator {
738 int i; 736 struct bvec_iter iter;
739 struct bio *bio; 737 struct bio *bio;
740}; 738};
741 739
@@ -748,10 +746,11 @@ struct req_iterator {
748 746
749#define rq_for_each_segment(bvl, _rq, _iter) \ 747#define rq_for_each_segment(bvl, _rq, _iter) \
750 __rq_for_each_bio(_iter.bio, _rq) \ 748 __rq_for_each_bio(_iter.bio, _rq) \
751 bio_for_each_segment(bvl, _iter.bio, _iter.i) 749 bio_for_each_segment(bvl, _iter.bio, _iter.iter)
752 750
753#define rq_iter_last(rq, _iter) \ 751#define rq_iter_last(bvec, _iter) \
754 (_iter.bio->bi_next == NULL && _iter.i == _iter.bio->bi_vcnt-1) 752 (_iter.bio->bi_next == NULL && \
753 bio_iter_last(bvec, _iter.iter))
755 754
756#ifndef ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE 755#ifndef ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE
757# error "You should define ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE for your platform" 756# error "You should define ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE for your platform"