Lines Matching refs:bio
60 static int elv_iosched_allow_bio_merge(struct request *rq, struct bio *bio) in elv_iosched_allow_bio_merge() argument
66 return e->type->ops.allow_merge(q, rq, bio); in elv_iosched_allow_bio_merge()
74 bool elv_bio_merge_ok(struct request *rq, struct bio *bio) in elv_bio_merge_ok() argument
76 if (!blk_rq_merge_ok(rq, bio)) in elv_bio_merge_ok()
79 if (!elv_iosched_allow_bio_merge(rq, bio)) in elv_bio_merge_ok()
305 struct bio *bio) in elv_merge() argument
316 if (blk_queue_nomerges(q) || !bio_mergeable(bio)) in elv_merge()
322 if (q->last_merge && elv_bio_merge_ok(q->last_merge, bio)) { in elv_merge()
323 enum elv_merge ret = blk_try_merge(q->last_merge, bio); in elv_merge()
337 __rq = elv_rqhash_find(q, bio->bi_iter.bi_sector); in elv_merge()
338 if (__rq && elv_bio_merge_ok(__rq, bio)) { in elv_merge()
344 return e->type->ops.request_merge(q, req, bio); in elv_merge()