Lines Matching defs:bio
597 static inline bool wbt_should_throttle(struct bio *bio)
599 switch (bio_op(bio)) {
604 if ((bio->bi_opf & (REQ_SYNC | REQ_IDLE)) ==
615 static enum wbt_flags bio_to_wbt_flags(struct rq_wb *rwb, struct bio *bio)
622 if (bio_op(bio) == REQ_OP_READ) {
624 } else if (wbt_should_throttle(bio)) {
627 if (bio_op(bio) == REQ_OP_DISCARD)
634 static void wbt_cleanup(struct rq_qos *rqos, struct bio *bio)
637 enum wbt_flags flags = bio_to_wbt_flags(rwb, bio);
646 static void wbt_wait(struct rq_qos *rqos, struct bio *bio)
651 flags = bio_to_wbt_flags(rwb, bio);
658 __wbt_wait(rwb, flags, bio->bi_opf);
664 static void wbt_track(struct rq_qos *rqos, struct request *rq, struct bio *bio)
667 rq->wbt_flags |= bio_to_wbt_flags(rwb, bio);