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()
87 bbio = btrfs_bio(bio); in btrfs_split_bio()
101 static void btrfs_cleanup_bio(struct btrfs_bio *bbio) in btrfs_cleanup_bio()
108 static void __btrfs_bio_end_io(struct btrfs_bio *bbio) in __btrfs_bio_end_io()
120 void btrfs_bio_end_io(struct btrfs_bio *bbio, blk_status_t status) in btrfs_bio_end_io()
124 struct btrfs_bio *orig_bbio = bbio->private; in btrfs_bio_end_io()
167 static void btrfs_end_repair_bio(struct btrfs_bio *repair_bbio, in btrfs_end_repair_bio()
218 static struct btrfs_failed_bio *repair_one_sector(struct btrfs_bio *failed_bbio, in repair_one_sector()
227 struct btrfs_bio *repair_bbio; in repair_one_sector()
256 repair_bbio = btrfs_bio(repair_bio); in repair_one_sector()
267 static void btrfs_check_read_bio(struct btrfs_bio *bbio, struct btrfs_device *dev) in btrfs_check_read_bio()
337 struct btrfs_bio *bbio = container_of(work, struct btrfs_bio, end_io_work); in btrfs_end_bio_work()
348 struct btrfs_bio *bbio = btrfs_bio(bio); in btrfs_simple_end_io()
370 struct btrfs_bio *bbio = btrfs_bio(bio); in btrfs_raid56_end_io()
386 struct btrfs_bio *bbio = btrfs_bio(bio); in btrfs_orig_write_end_io()
498 btrfs_bio(bio)->mirror_num = mirror_num; in btrfs_submit_bio()
501 btrfs_bio(bio)->orig_physical = smap->physical; in btrfs_submit_bio()
523 static blk_status_t btrfs_bio_csum(struct btrfs_bio *bbio) in btrfs_bio_csum()
535 struct btrfs_bio *bbio;
597 static bool should_async_write(struct btrfs_bio *bbio) in should_async_write()
634 static bool btrfs_wq_submit_bio(struct btrfs_bio *bbio, in btrfs_wq_submit_bio()
655 static u64 btrfs_append_map_length(struct btrfs_bio *bbio, u64 map_length) in btrfs_append_map_length()
674 static bool btrfs_submit_chunk(struct btrfs_bio *bbio, int mirror_num) in btrfs_submit_chunk()
707 struct btrfs_bio *split; in btrfs_submit_chunk()
781 struct btrfs_bio *remaining = bbio->private; in btrfs_submit_chunk()
794 void btrfs_submit_bbio(struct btrfs_bio *bbio, int mirror_num) in btrfs_submit_bbio()
873 void btrfs_submit_repair_write(struct btrfs_bio *bbio, int mirror_num, bool dev_replace) in btrfs_submit_repair_write()
906 offsetof(struct btrfs_bio, bio), in btrfs_bioset_init()
910 offsetof(struct btrfs_bio, bio), 0)) in btrfs_bioset_init()
913 offsetof(struct btrfs_bio, bio), in btrfs_bioset_init()