Lines Matching defs:bio
598 static inline bool wbt_should_throttle(struct bio *bio)
600 switch (bio_op(bio)) {
605 if ((bio->bi_opf & (REQ_SYNC | REQ_IDLE)) ==
616 static enum wbt_flags bio_to_wbt_flags(struct rq_wb *rwb, struct bio *bio)
623 if (bio_op(bio) == REQ_OP_READ) {
625 } else if (wbt_should_throttle(bio)) {
628 if (bio_op(bio) == REQ_OP_DISCARD)
635 static void wbt_cleanup(struct rq_qos *rqos, struct bio *bio)
638 enum wbt_flags flags = bio_to_wbt_flags(rwb, bio);
647 static void wbt_wait(struct rq_qos *rqos, struct bio *bio)
652 flags = bio_to_wbt_flags(rwb, bio);
659 __wbt_wait(rwb, flags, bio->bi_opf);
665 static void wbt_track(struct rq_qos *rqos, struct request *rq, struct bio *bio)
668 rq->wbt_flags |= bio_to_wbt_flags(rwb, bio);