Lines Matching defs:bio
522 static inline bool wbt_should_throttle(struct rq_wb *rwb, struct bio *bio)
524 switch (bio_op(bio)) {
529 if ((bio->bi_opf & (REQ_SYNC | REQ_IDLE)) ==
540 static enum wbt_flags bio_to_wbt_flags(struct rq_wb *rwb, struct bio *bio)
547 if (bio_op(bio) == REQ_OP_READ) {
549 } else if (wbt_should_throttle(rwb, bio)) {
552 if (bio_op(bio) == REQ_OP_DISCARD)
559 static void wbt_cleanup(struct rq_qos *rqos, struct bio *bio)
562 enum wbt_flags flags = bio_to_wbt_flags(rwb, bio);
572 static void wbt_wait(struct rq_qos *rqos, struct bio *bio)
577 flags = bio_to_wbt_flags(rwb, bio);
584 __wbt_wait(rwb, flags, bio->bi_opf);
590 static void wbt_track(struct rq_qos *rqos, struct request *rq, struct bio *bio)
593 rq->wbt_flags |= bio_to_wbt_flags(rwb, bio);