diff options
-rw-r--r-- | include/linux/blkdev.h | 2 | ||||
-rw-r--r-- | mm/Kconfig | 4 | ||||
-rw-r--r-- | mm/Makefile | 4 |
3 files changed, 6 insertions, 4 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 |
diff --git a/mm/Kconfig b/mm/Kconfig index 086af703da43..86187221e78f 100644 --- a/mm/Kconfig +++ b/mm/Kconfig | |||
@@ -163,6 +163,10 @@ config ZONE_DMA_FLAG | |||
163 | default "0" if !ZONE_DMA | 163 | default "0" if !ZONE_DMA |
164 | default "1" | 164 | default "1" |
165 | 165 | ||
166 | config BOUNCE | ||
167 | def_bool y | ||
168 | depends on BLOCK && MMU && (ZONE_DMA || HIGHMEM) | ||
169 | |||
166 | config NR_QUICK | 170 | config NR_QUICK |
167 | int | 171 | int |
168 | depends on QUICKLIST | 172 | depends on QUICKLIST |
diff --git a/mm/Makefile b/mm/Makefile index a9148ea329aa..245e33ab00c4 100644 --- a/mm/Makefile +++ b/mm/Makefile | |||
@@ -13,9 +13,7 @@ obj-y := bootmem.o filemap.o mempool.o oom_kill.o fadvise.o \ | |||
13 | prio_tree.o util.o mmzone.o vmstat.o backing-dev.o \ | 13 | prio_tree.o util.o mmzone.o vmstat.o backing-dev.o \ |
14 | $(mmu-y) | 14 | $(mmu-y) |
15 | 15 | ||
16 | ifeq ($(CONFIG_MMU)$(CONFIG_BLOCK),yy) | 16 | obj-$(CONFIG_BOUNCE) += bounce.o |
17 | obj-y += bounce.o | ||
18 | endif | ||
19 | obj-$(CONFIG_SWAP) += page_io.o swap_state.o swapfile.o thrash.o | 17 | obj-$(CONFIG_SWAP) += page_io.o swap_state.o swapfile.o thrash.o |
20 | obj-$(CONFIG_HUGETLBFS) += hugetlb.o | 18 | obj-$(CONFIG_HUGETLBFS) += hugetlb.o |
21 | obj-$(CONFIG_NUMA) += mempolicy.o | 19 | obj-$(CONFIG_NUMA) += mempolicy.o |