Lines Matching refs:btrfs_bio

24 	struct btrfs_bio *bbio;
30 static inline bool is_data_bbio(struct btrfs_bio *bbio) in is_data_bbio()
35 static bool bbio_has_ordered_extent(struct btrfs_bio *bbio) in bbio_has_ordered_extent()
44 void btrfs_bio_init(struct btrfs_bio *bbio, struct btrfs_fs_info *fs_info, in btrfs_bio_init()
47 memset(bbio, 0, offsetof(struct btrfs_bio, bio)); in btrfs_bio_init()
62 struct btrfs_bio *btrfs_bio_alloc(unsigned int nr_vecs, blk_opf_t opf, in btrfs_bio_alloc()
66 struct btrfs_bio *bbio; in btrfs_bio_alloc()
70 bbio = btrfs_bio(bio); in btrfs_bio_alloc()
75 static struct btrfs_bio *btrfs_split_bio(struct btrfs_fs_info *fs_info, in btrfs_split_bio()
76 struct btrfs_bio *orig_bbio, in btrfs_split_bio()
79 struct btrfs_bio *bbio; in btrfs_split_bio()
84 bbio = btrfs_bio(bio); in btrfs_split_bio()
98 static void btrfs_cleanup_bio(struct btrfs_bio *bbio) in btrfs_cleanup_bio()
105 static void __btrfs_bio_end_io(struct btrfs_bio *bbio) in __btrfs_bio_end_io()
117 void btrfs_bio_end_io(struct btrfs_bio *bbio, blk_status_t status) in btrfs_bio_end_io()
121 struct btrfs_bio *orig_bbio = bbio->private; in btrfs_bio_end_io()
164 static void btrfs_end_repair_bio(struct btrfs_bio *repair_bbio, in btrfs_end_repair_bio()
215 static struct btrfs_failed_bio *repair_one_sector(struct btrfs_bio *failed_bbio, in repair_one_sector()
224 struct btrfs_bio *repair_bbio; in repair_one_sector()
253 repair_bbio = btrfs_bio(repair_bio); in repair_one_sector()
264 static void btrfs_check_read_bio(struct btrfs_bio *bbio, struct btrfs_device *dev) in btrfs_check_read_bio()
334 struct btrfs_bio *bbio = container_of(work, struct btrfs_bio, end_io_work); in btrfs_end_bio_work()
345 struct btrfs_bio *bbio = btrfs_bio(bio); in btrfs_simple_end_io()
367 struct btrfs_bio *bbio = btrfs_bio(bio); in btrfs_raid56_end_io()
383 struct btrfs_bio *bbio = btrfs_bio(bio); in btrfs_orig_write_end_io()
487 btrfs_bio(bio)->mirror_num = mirror_num; in btrfs_submit_bio()
490 btrfs_bio(bio)->orig_physical = smap->physical; in btrfs_submit_bio()
512 static blk_status_t btrfs_bio_csum(struct btrfs_bio *bbio) in btrfs_bio_csum()
524 struct btrfs_bio *bbio;
586 static bool should_async_write(struct btrfs_bio *bbio) in should_async_write()
623 static bool btrfs_wq_submit_bio(struct btrfs_bio *bbio, in btrfs_wq_submit_bio()
644 static u64 btrfs_append_map_length(struct btrfs_bio *bbio, u64 map_length) in btrfs_append_map_length()
657 static bool btrfs_submit_chunk(struct btrfs_bio *bbio, int mirror_num) in btrfs_submit_chunk()
756 struct btrfs_bio *remaining = bbio->private; in btrfs_submit_chunk()
768 void btrfs_submit_bbio(struct btrfs_bio *bbio, int mirror_num) in btrfs_submit_bbio()
847 void btrfs_submit_repair_write(struct btrfs_bio *bbio, int mirror_num, bool dev_replace) in btrfs_submit_repair_write()
880 offsetof(struct btrfs_bio, bio), in btrfs_bioset_init()
884 offsetof(struct btrfs_bio, bio), 0)) in btrfs_bioset_init()
887 offsetof(struct btrfs_bio, bio), in btrfs_bioset_init()