Commit 3bce016a authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Jens Axboe

block: move bounce declarations to block/blk.h

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent caa4b024
...@@ -336,4 +336,17 @@ static inline void blk_throtl_bio_endio(struct bio *bio) { } ...@@ -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) { } static inline void blk_throtl_stat_add(struct request *rq, u64 time) { }
#endif #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 */ #endif /* BLK_INTERNAL_H */
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
#include <asm/tlbflush.h> #include <asm/tlbflush.h>
#include <trace/events/block.h> #include <trace/events/block.h>
#include "blk.h"
#define POOL_SIZE 64 #define POOL_SIZE 64
#define ISA_POOL_SIZE 16 #define ISA_POOL_SIZE 16
......
...@@ -884,19 +884,6 @@ extern unsigned long blk_max_low_pfn, blk_max_pfn; ...@@ -884,19 +884,6 @@ extern unsigned long blk_max_low_pfn, blk_max_pfn;
#define BLK_DEFAULT_SG_TIMEOUT (60 * HZ) #define BLK_DEFAULT_SG_TIMEOUT (60 * HZ)
#define BLK_MIN_SG_TIMEOUT (7 * 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 rq_map_data {
struct page **pages; struct page **pages;
int page_order; int page_order;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment