diff options
Diffstat (limited to 'mm')
-rw-r--r-- | mm/bounce.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/bounce.c b/mm/bounce.c index 65f5e17e411a..4ebe3ea83795 100644 --- a/mm/bounce.c +++ b/mm/bounce.c | |||
@@ -191,7 +191,7 @@ static void __blk_queue_bounce(struct request_queue *q, struct bio **bio_orig, | |||
191 | /* | 191 | /* |
192 | * is destination page below bounce pfn? | 192 | * is destination page below bounce pfn? |
193 | */ | 193 | */ |
194 | if (page_to_pfn(page) <= q->bounce_pfn) | 194 | if (page_to_pfn(page) <= queue_bounce_pfn(q)) |
195 | continue; | 195 | continue; |
196 | 196 | ||
197 | /* | 197 | /* |
@@ -283,7 +283,7 @@ void blk_queue_bounce(struct request_queue *q, struct bio **bio_orig) | |||
283 | * don't waste time iterating over bio segments | 283 | * don't waste time iterating over bio segments |
284 | */ | 284 | */ |
285 | if (!(q->bounce_gfp & GFP_DMA)) { | 285 | if (!(q->bounce_gfp & GFP_DMA)) { |
286 | if (q->bounce_pfn >= blk_max_pfn) | 286 | if (queue_bounce_pfn(q) >= blk_max_pfn) |
287 | return; | 287 | return; |
288 | pool = page_pool; | 288 | pool = page_pool; |
289 | } else { | 289 | } else { |