Lines Matching refs:orig_bio
459 struct bio *orig_bio; member
604 if (s->orig_bio) { in bio_complete()
605 int cpu, rw = bio_data_dir(s->orig_bio); in bio_complete()
613 trace_bcache_request_end(s->d, s->orig_bio); in bio_complete()
614 bio_endio(s->orig_bio, s->iop.error); in bio_complete()
615 s->orig_bio = NULL; in bio_complete()
619 static void do_bio_hook(struct search *s, struct bio *orig_bio) in do_bio_hook() argument
624 __bio_clone_fast(bio, orig_bio); in do_bio_hook()
653 s->orig_bio = bio; in search_alloc()
720 trace_bcache_read_retry(s->orig_bio); in cached_dev_read_error()
723 do_bio_hook(s, s->orig_bio); in cached_dev_read_error()
760 bch_data_verify(dc, s->orig_bio); in cached_dev_read_done()
780 trace_bcache_read(s->orig_bio, !s->cache_miss, s->iop.bypass); in cached_dev_read_done_bh()
912 if (should_writeback(dc, s->orig_bio, in cached_dev_write()
920 s->iop.bio = s->orig_bio; in cached_dev_write()