diff options
Diffstat (limited to 'include/linux/blkdev.h')
-rw-r--r-- | include/linux/blkdev.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 1cc02972fbe2..e727f6c44c44 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h | |||
@@ -752,6 +752,17 @@ struct req_iterator { | |||
752 | #define rq_iter_last(rq, _iter) \ | 752 | #define rq_iter_last(rq, _iter) \ |
753 | (_iter.bio->bi_next == NULL && _iter.i == _iter.bio->bi_vcnt-1) | 753 | (_iter.bio->bi_next == NULL && _iter.i == _iter.bio->bi_vcnt-1) |
754 | 754 | ||
755 | #ifndef ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE | ||
756 | # error "You should define ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE for your platform" | ||
757 | #endif | ||
758 | #if ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE | ||
759 | extern void rq_flush_dcache_pages(struct request *rq); | ||
760 | #else | ||
761 | static inline void rq_flush_dcache_pages(struct request *rq) | ||
762 | { | ||
763 | } | ||
764 | #endif | ||
765 | |||
755 | extern int blk_register_queue(struct gendisk *disk); | 766 | extern int blk_register_queue(struct gendisk *disk); |
756 | extern void blk_unregister_queue(struct gendisk *disk); | 767 | extern void blk_unregister_queue(struct gendisk *disk); |
757 | extern void register_disk(struct gendisk *dev); | 768 | extern void register_disk(struct gendisk *dev); |