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>
此提交包含在:
Martin K. Petersen
2009-05-22 17:17:50 -04:00
提交者 Jens Axboe
父節點 e1defc4ff0
當前提交 ae03bf639a
共有 25 個檔案被更改,包括 147 行新增97 行删除

查看文件

@@ -192,7 +192,7 @@ static void __blk_queue_bounce(struct request_queue *q, struct bio **bio_orig,
/*
* is destination page below bounce pfn?
*/
if (page_to_pfn(page) <= q->bounce_pfn)
if (page_to_pfn(page) <= queue_bounce_pfn(q))
continue;
/*
@@ -284,7 +284,7 @@ void blk_queue_bounce(struct request_queue *q, struct bio **bio_orig)
* don't waste time iterating over bio segments
*/
if (!(q->bounce_gfp & GFP_DMA)) {
if (q->bounce_pfn >= blk_max_pfn)
if (queue_bounce_pfn(q) >= blk_max_pfn)
return;
pool = page_pool;
} else {