diff options
author | Martin K. Petersen <martin.petersen@oracle.com> | 2009-05-22 17:17:50 -0400 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2009-05-22 17:22:54 -0400 |
commit | ae03bf639a5027d27270123f5f6e3ee6a412781d (patch) | |
tree | d705f41a188ad656b1f47f7952626a9f992e3b8f /mm | |
parent | e1defc4ff0cf57aca6c5e3ff99fa503f5943c1f1 (diff) |
block: Use accessor functions for queue limits
Convert all external users of queue limits to using wrapper functions
instead of poking the request queue variables directly.
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
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 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 { |