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