Lines Matching refs:btrfs_bio

25 	struct btrfs_bio *bbio;
31 static inline bool is_data_bbio(struct btrfs_bio *bbio)
36 static bool bbio_has_ordered_extent(struct btrfs_bio *bbio)
42 * Initialize a btrfs_bio structure. This skips the embedded bio itself as it
45 void btrfs_bio_init(struct btrfs_bio *bbio, struct btrfs_fs_info *fs_info,
48 memset(bbio, 0, offsetof(struct btrfs_bio, bio));
56 * Allocate a btrfs_bio structure. The btrfs_bio is the main I/O container for
62 struct btrfs_bio *btrfs_bio_alloc(unsigned int nr_vecs, blk_opf_t opf,
66 struct btrfs_bio *bbio;
70 bbio = btrfs_bio(bio);
75 static struct btrfs_bio *btrfs_split_bio(struct btrfs_fs_info *fs_info,
76 struct btrfs_bio *orig_bbio,
79 struct btrfs_bio *bbio;
91 bbio = btrfs_bio(bio);
105 static void btrfs_cleanup_bio(struct btrfs_bio *bbio)
112 static void __btrfs_bio_end_io(struct btrfs_bio *bbio)
124 void btrfs_bio_end_io(struct btrfs_bio *bbio, blk_status_t status)
132 static void btrfs_bbio_propagate_error(struct btrfs_bio *bbio,
133 struct btrfs_bio *orig_bbio)
151 static void btrfs_orig_bbio_end_io(struct btrfs_bio *bbio)
154 struct btrfs_bio *orig_bbio = bbio->private;
188 static void btrfs_end_repair_bio(struct btrfs_bio *repair_bbio,
233 static struct btrfs_failed_bio *repair_one_sector(struct btrfs_bio *failed_bbio,
242 struct btrfs_bio *repair_bbio;
271 repair_bbio = btrfs_bio(repair_bio);
282 static void btrfs_check_read_bio(struct btrfs_bio *bbio, struct btrfs_device *dev)
352 struct btrfs_bio *bbio = container_of(work, struct btrfs_bio, end_io_work);
363 struct btrfs_bio *bbio = btrfs_bio(bio);
385 struct btrfs_bio *bbio = btrfs_bio(bio);
401 struct btrfs_bio *bbio = btrfs_bio(bio);
480 /* Reuse the bio embedded into the btrfs_bio for the last mirror */
501 btrfs_bio(bio)->mirror_num = mirror_num;
504 btrfs_bio(bio)->orig_physical = smap->physical;
526 static blk_status_t btrfs_bio_csum(struct btrfs_bio *bbio)
538 struct btrfs_bio *bbio;
598 static bool should_async_write(struct btrfs_bio *bbio)
623 static bool btrfs_wq_submit_bio(struct btrfs_bio *bbio,
645 static bool btrfs_submit_chunk(struct btrfs_bio *bbio, int mirror_num)
649 struct btrfs_bio *orig_bbio = bbio;
729 void btrfs_submit_bio(struct btrfs_bio *bbio, int mirror_num)
805 * Submit a btrfs_bio based repair write.
809 void btrfs_submit_repair_write(struct btrfs_bio *bbio, int mirror_num, bool dev_replace)
842 offsetof(struct btrfs_bio, bio),
846 offsetof(struct btrfs_bio, bio), 0))
849 offsetof(struct btrfs_bio, bio),