diff options
| -rw-r--r-- | block/ll_rw_blk.c | 6 | ||||
| -rw-r--r-- | mm/bounce.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/block/ll_rw_blk.c b/block/ll_rw_blk.c index 38c293b987b7..3de06953ac33 100644 --- a/block/ll_rw_blk.c +++ b/block/ll_rw_blk.c | |||
| @@ -1221,7 +1221,7 @@ void blk_recount_segments(request_queue_t *q, struct bio *bio) | |||
| 1221 | * considered part of another segment, since that might | 1221 | * considered part of another segment, since that might |
| 1222 | * change with the bounce page. | 1222 | * change with the bounce page. |
| 1223 | */ | 1223 | */ |
| 1224 | high = page_to_pfn(bv->bv_page) >= q->bounce_pfn; | 1224 | high = page_to_pfn(bv->bv_page) > q->bounce_pfn; |
| 1225 | if (high || highprv) | 1225 | if (high || highprv) |
| 1226 | goto new_hw_segment; | 1226 | goto new_hw_segment; |
| 1227 | if (cluster) { | 1227 | if (cluster) { |
| @@ -3658,8 +3658,8 @@ int __init blk_dev_init(void) | |||
| 3658 | open_softirq(BLOCK_SOFTIRQ, blk_done_softirq, NULL); | 3658 | open_softirq(BLOCK_SOFTIRQ, blk_done_softirq, NULL); |
| 3659 | register_hotcpu_notifier(&blk_cpu_notifier); | 3659 | register_hotcpu_notifier(&blk_cpu_notifier); |
| 3660 | 3660 | ||
| 3661 | blk_max_low_pfn = max_low_pfn; | 3661 | blk_max_low_pfn = max_low_pfn - 1; |
| 3662 | blk_max_pfn = max_pfn; | 3662 | blk_max_pfn = max_pfn - 1; |
| 3663 | 3663 | ||
| 3664 | return 0; | 3664 | return 0; |
| 3665 | } | 3665 | } |
diff --git a/mm/bounce.c b/mm/bounce.c index 643efbe82402..ad401fc57440 100644 --- a/mm/bounce.c +++ b/mm/bounce.c | |||
| @@ -204,7 +204,7 @@ static void __blk_queue_bounce(request_queue_t *q, struct bio **bio_orig, | |||
| 204 | /* | 204 | /* |
| 205 | * is destination page below bounce pfn? | 205 | * is destination page below bounce pfn? |
| 206 | */ | 206 | */ |
| 207 | if (page_to_pfn(page) < q->bounce_pfn) | 207 | if (page_to_pfn(page) <= q->bounce_pfn) |
| 208 | continue; | 208 | continue; |
| 209 | 209 | ||
| 210 | /* | 210 | /* |
