Lines Matching refs:orig_bio
465 struct bio *orig_bio; member
611 if (s->orig_bio) { in bio_complete()
612 generic_end_io_acct(bio_data_dir(s->orig_bio), in bio_complete()
615 trace_bcache_request_end(s->d, s->orig_bio); in bio_complete()
616 s->orig_bio->bi_error = s->iop.error; in bio_complete()
617 bio_endio(s->orig_bio); in bio_complete()
618 s->orig_bio = NULL; in bio_complete()
622 static void do_bio_hook(struct search *s, struct bio *orig_bio) in do_bio_hook() argument
627 __bio_clone_fast(bio, orig_bio); in do_bio_hook()
656 s->orig_bio = bio; in search_alloc()
715 trace_bcache_read_retry(s->orig_bio); in cached_dev_read_error()
718 do_bio_hook(s, s->orig_bio); in cached_dev_read_error()
755 bch_data_verify(dc, s->orig_bio); in cached_dev_read_done()
775 trace_bcache_read(s->orig_bio, !s->cache_miss, s->iop.bypass); in cached_dev_read_done_bh()
905 if (should_writeback(dc, s->orig_bio, in cached_dev_write()
913 s->iop.bio = s->orig_bio; in cached_dev_write()