Lines Matching defs:bio
11 #include <linux/bio.h>
740 * Try to merge @bio into an existing request. If @bio has been merged into
744 struct bio *bio)
747 const u8 ioprio_class = IOPRIO_PRIO_CLASS(bio->bi_ioprio);
750 sector_t sector = bio_end_sector(bio);
756 __rq = elv_rb_find(&per_prio->sort_list[bio_data_dir(bio)], sector);
760 if (elv_bio_merge_ok(__rq, bio)) {
772 * Attempt to merge a bio into an existing request. This function is called
773 * before @bio is associated with a request.
775 static bool dd_bio_merge(struct request_queue *q, struct bio *bio,
783 ret = blk_mq_sched_try_merge(q, bio, nr_segs, &free);