Lines Matching defs:bio
87 static struct ioprio_blkcg *ioprio_blkcg_from_bio(struct bio *bio)
89 struct blkg_policy_data *pd = blkg_to_pd(bio->bi_blkg, &ioprio_policy);
187 void blkcg_set_ioprio(struct bio *bio)
189 struct ioprio_blkcg *blkcg = ioprio_blkcg_from_bio(bio);
204 if (IOPRIO_PRIO_CLASS(bio->bi_ioprio) != IOPRIO_CLASS_RT)
205 bio->bi_ioprio = IOPRIO_PRIO_VALUE(IOPRIO_CLASS_RT, 4);
213 * If the bio I/O priority equals IOPRIO_CLASS_NONE, the cgroup I/O
214 * priority is assigned to the bio.
216 prio = max_t(u16, bio->bi_ioprio,
218 if (prio > bio->bi_ioprio)
219 bio->bi_ioprio = prio;