Lines Matching refs:orig_bio
459 struct bio *orig_bio; member
603 if (s->orig_bio) { in bio_complete()
604 generic_end_io_acct(bio_data_dir(s->orig_bio), in bio_complete()
607 trace_bcache_request_end(s->d, s->orig_bio); in bio_complete()
608 bio_endio(s->orig_bio, s->iop.error); in bio_complete()
609 s->orig_bio = NULL; in bio_complete()
613 static void do_bio_hook(struct search *s, struct bio *orig_bio) in do_bio_hook() argument
618 __bio_clone_fast(bio, orig_bio); in do_bio_hook()
647 s->orig_bio = bio; in search_alloc()
706 trace_bcache_read_retry(s->orig_bio); in cached_dev_read_error()
709 do_bio_hook(s, s->orig_bio); in cached_dev_read_error()
746 bch_data_verify(dc, s->orig_bio); in cached_dev_read_done()
766 trace_bcache_read(s->orig_bio, !s->cache_miss, s->iop.bypass); in cached_dev_read_done_bh()
896 if (should_writeback(dc, s->orig_bio, in cached_dev_write()
904 s->iop.bio = s->orig_bio; in cached_dev_write()