summaryrefslogtreecommitdiffstats
path: root/block/blk.h
diff options
context:
space:
mode:
authorChristoph Hellwig2017-06-19 09:26:21 +0200
committerJens Axboe2017-06-27 20:13:45 +0200
commit3bce016a4c5975e4279bfb3cbd6d0332b856cc72 (patch)
treef62aa84586ecb52b201c69bc53db649e2919a559 /block/blk.h
parentblk-map: call blk_queue_bounce from blk_rq_append_bio (diff)
downloadkernel-qcow2-linux-3bce016a4c5975e4279bfb3cbd6d0332b856cc72.tar.gz
kernel-qcow2-linux-3bce016a4c5975e4279bfb3cbd6d0332b856cc72.tar.xz
kernel-qcow2-linux-3bce016a4c5975e4279bfb3cbd6d0332b856cc72.zip
block: move bounce declarations to block/blk.h
Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk.h')
-rw-r--r--block/blk.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/block/blk.h b/block/blk.h
index 798691a5e5e9..01ebb8185f6b 100644
--- a/block/blk.h
+++ b/block/blk.h
@@ -336,4 +336,17 @@ static inline void blk_throtl_bio_endio(struct bio *bio) { }
static inline void blk_throtl_stat_add(struct request *rq, u64 time) { }
#endif
+#ifdef CONFIG_BOUNCE
+extern int init_emergency_isa_pool(void);
+extern void blk_queue_bounce(struct request_queue *q, struct bio **bio);
+#else
+static inline int init_emergency_isa_pool(void)
+{
+ return 0;
+}
+static inline void blk_queue_bounce(struct request_queue *q, struct bio **bio)
+{
+}
+#endif /* CONFIG_BOUNCE */
+
#endif /* BLK_INTERNAL_H */