]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
block: move bounce declarations to block/blk.h
authorChristoph Hellwig <hch@lst.de>
Mon, 19 Jun 2017 07:26:21 +0000 (09:26 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 27 Jun 2017 18:13:45 +0000 (12:13 -0600)
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk.h
block/bounce.c
include/linux/blkdev.h

index 798691a5e5e9fc31621ff736572408bcafde82d9..01ebb8185f6bfac8eb827ebdaee3a9d6845660dc 100644 (file)
@@ -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 */
index 27c5cc0f1ed5324916bfdb29371e0e3461b72909..36ba44491703159e34e5b2091e0c6cd420caaaa1 100644 (file)
@@ -22,6 +22,7 @@
 #include <asm/tlbflush.h>
 
 #include <trace/events/block.h>
+#include "blk.h"
 
 #define POOL_SIZE      64
 #define ISA_POOL_SIZE  16
index e1e289ab66b91f1f6997d7060f34f8cb33915568..e7eef48c97c9ec4477bee23fdf623b57a2960cbd 100644 (file)
@@ -884,19 +884,6 @@ extern unsigned long blk_max_low_pfn, blk_max_pfn;
 #define BLK_DEFAULT_SG_TIMEOUT (60 * HZ)
 #define BLK_MIN_SG_TIMEOUT     (7 * HZ)
 
-#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_MMU */
-
 struct rq_map_data {
        struct page **pages;
        int page_order;