Lines Matching refs:q
182 static int must_snapshot_stable_pages(struct request_queue *q, struct bio *bio) in must_snapshot_stable_pages() argument
187 if (!bdi_cap_stable_pages_required(&q->backing_dev_info)) in must_snapshot_stable_pages()
193 static int must_snapshot_stable_pages(struct request_queue *q, struct bio *bio) in must_snapshot_stable_pages() argument
199 static void __blk_queue_bounce(struct request_queue *q, struct bio **bio_orig, in __blk_queue_bounce() argument
211 if (page_to_pfn(from.bv_page) > queue_bounce_pfn(q)) in __blk_queue_bounce()
221 if (page_to_pfn(page) <= queue_bounce_pfn(q) && !force) in __blk_queue_bounce()
224 to->bv_page = mempool_alloc(pool, q->bounce_gfp); in __blk_queue_bounce()
239 trace_block_bio_bounce(q, *bio_orig); in __blk_queue_bounce()
257 void blk_queue_bounce(struct request_queue *q, struct bio **bio_orig) in blk_queue_bounce() argument
268 must_bounce = must_snapshot_stable_pages(q, *bio_orig); in blk_queue_bounce()
275 if (!(q->bounce_gfp & GFP_DMA)) { in blk_queue_bounce()
276 if (queue_bounce_pfn(q) >= blk_max_pfn && !must_bounce) in blk_queue_bounce()
287 __blk_queue_bounce(q, bio_orig, pool, must_bounce); in blk_queue_bounce()