diff options
author | Christoph Lameter <clameter@sgi.com> | 2007-07-17 07:03:37 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-17 13:23:02 -0400 |
commit | 2a7326b5bbafac4c96bcdb944b2a773593030b96 (patch) | |
tree | 25bc49eadea73cf2133198963d1baf3f5def7316 /include | |
parent | 831441862956fffa17b9801db37e6ea1650b0f69 (diff) |
CONFIG_BOUNCE to avoid useless inclusion of bounce buffer logic
The bounce buffer logic is included on systems that do not need it. If a
system does not have zones like ZONE_DMA and ZONE_HIGHMEM that can lead to
the use of bounce buffers then there is no need to reserve memory pools etc
etc. This is true f.e. for SGI Altix.
Also nicifies the Makefile and gets rid of the tricky "and" there.
Signed-off-by: Christoph Lameter <clameter@sgi.com>
Acked-by: Jens Axboe <jens.axboe@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/blkdev.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index b32564a1e105..f78965fc6426 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h | |||
@@ -624,7 +624,7 @@ extern unsigned long blk_max_low_pfn, blk_max_pfn; | |||
624 | */ | 624 | */ |
625 | #define BLK_DEFAULT_SG_TIMEOUT (60 * HZ) | 625 | #define BLK_DEFAULT_SG_TIMEOUT (60 * HZ) |
626 | 626 | ||
627 | #ifdef CONFIG_MMU | 627 | #ifdef CONFIG_BOUNCE |
628 | extern int init_emergency_isa_pool(void); | 628 | extern int init_emergency_isa_pool(void); |
629 | extern void blk_queue_bounce(request_queue_t *q, struct bio **bio); | 629 | extern void blk_queue_bounce(request_queue_t *q, struct bio **bio); |
630 | #else | 630 | #else |