Home
last modified time | relevance | path

Searched refs:bbio (Results 1 – 20 of 20) sorted by relevance

/linux-6.6.21/fs/btrfs/
Dbio.c25 struct btrfs_bio *bbio; member
31 static inline bool is_data_bbio(struct btrfs_bio *bbio) in is_data_bbio() argument
33 return bbio->inode && is_data_inode(&bbio->inode->vfs_inode); in is_data_bbio()
36 static bool bbio_has_ordered_extent(struct btrfs_bio *bbio) in bbio_has_ordered_extent() argument
38 return is_data_bbio(bbio) && btrfs_op(&bbio->bio) == BTRFS_MAP_WRITE; in bbio_has_ordered_extent()
45 void btrfs_bio_init(struct btrfs_bio *bbio, struct btrfs_fs_info *fs_info, in btrfs_bio_init() argument
48 memset(bbio, 0, offsetof(struct btrfs_bio, bio)); in btrfs_bio_init()
49 bbio->fs_info = fs_info; in btrfs_bio_init()
50 bbio->end_io = end_io; in btrfs_bio_init()
51 bbio->private = private; in btrfs_bio_init()
[all …]
Dcompression.c59 static inline struct compressed_bio *to_compressed_bio(struct btrfs_bio *bbio) in to_compressed_bio() argument
61 return container_of(bbio, struct compressed_bio, bbio); in to_compressed_bio()
68 struct btrfs_bio *bbio; in alloc_compressed_bio() local
70 bbio = btrfs_bio(bio_alloc_bioset(NULL, BTRFS_MAX_COMPRESSED_PAGES, op, in alloc_compressed_bio()
72 btrfs_bio_init(bbio, inode->root->fs_info, end_io, NULL); in alloc_compressed_bio()
73 bbio->inode = inode; in alloc_compressed_bio()
74 bbio->file_offset = start; in alloc_compressed_bio()
75 return to_compressed_bio(bbio); in alloc_compressed_bio()
172 static void end_compressed_bio_read(struct btrfs_bio *bbio) in end_compressed_bio_read() argument
174 struct compressed_bio *cb = to_compressed_bio(bbio); in end_compressed_bio_read()
[all …]
Dbio.h26 typedef void (*btrfs_bio_end_io_t)(struct btrfs_bio *bbio);
95 void btrfs_bio_init(struct btrfs_bio *bbio, struct btrfs_fs_info *fs_info,
100 void btrfs_bio_end_io(struct btrfs_bio *bbio, blk_status_t status);
105 void btrfs_submit_bio(struct btrfs_bio *bbio, int mirror_num);
106 void btrfs_submit_repair_write(struct btrfs_bio *bbio, int mirror_num, bool dev_replace);
Dfile-item.c344 blk_status_t btrfs_lookup_bio_sums(struct btrfs_bio *bbio) in btrfs_lookup_bio_sums() argument
346 struct btrfs_inode *inode = bbio->inode; in btrfs_lookup_bio_sums()
348 struct bio *bio = &bbio->bio; in btrfs_lookup_bio_sums()
380 bbio->csum = kmalloc_array(nblocks, csum_size, GFP_NOFS); in btrfs_lookup_bio_sums()
381 if (!bbio->csum) { in btrfs_lookup_bio_sums()
386 bbio->csum = bbio->csum_inline; in btrfs_lookup_bio_sums()
410 u8 *csum_dst = bbio->csum + in btrfs_lookup_bio_sums()
417 if (bbio->csum != bbio->csum_inline) in btrfs_lookup_bio_sums()
418 kfree(bbio->csum); in btrfs_lookup_bio_sums()
419 bbio->csum = NULL; in btrfs_lookup_bio_sums()
[all …]
Dscrub.c784 static void scrub_repair_read_endio(struct btrfs_bio *bbio) in scrub_repair_read_endio() argument
786 struct scrub_stripe *stripe = bbio->private; in scrub_repair_read_endio()
789 int sector_nr = calc_sector_number(stripe, bio_first_bvec_all(&bbio->bio)); in scrub_repair_read_endio()
795 bio_for_each_bvec_all(bvec, &bbio->bio, i) in scrub_repair_read_endio()
798 if (bbio->bio.bi_status) { in scrub_repair_read_endio()
807 bio_put(&bbio->bio); in scrub_repair_read_endio()
822 struct btrfs_bio *bbio = NULL; in scrub_stripe_submit_repair_read() local
838 if (bbio && ((i > 0 && !test_bit(i - 1, &stripe->error_bitmap)) || in scrub_stripe_submit_repair_read()
839 bbio->bio.bi_iter.bi_size >= blocksize)) { in scrub_stripe_submit_repair_read()
840 ASSERT(bbio->bio.bi_iter.bi_size); in scrub_stripe_submit_repair_read()
[all …]
Dextent_io.c100 struct btrfs_bio *bbio; member
110 struct btrfs_bio *bbio = bio_ctrl->bbio; in submit_one_bio() local
112 if (!bbio) in submit_one_bio()
116 ASSERT(bbio->bio.bi_iter.bi_size); in submit_one_bio()
118 if (btrfs_op(&bbio->bio) == BTRFS_MAP_READ && in submit_one_bio()
120 btrfs_submit_compressed_read(bbio); in submit_one_bio()
122 btrfs_submit_bio(bbio, 0); in submit_one_bio()
125 bio_ctrl->bbio = NULL; in submit_one_bio()
133 struct btrfs_bio *bbio = bio_ctrl->bbio; in submit_write_bio() local
135 if (!bbio) in submit_write_bio()
[all …]
Dfile-item.h41 blk_status_t btrfs_lookup_bio_sums(struct btrfs_bio *bbio);
52 blk_status_t btrfs_csum_one_bio(struct btrfs_bio *bbio);
53 blk_status_t btrfs_alloc_dummy_sum(struct btrfs_bio *bbio);
Dzoned.h64 bool btrfs_use_zone_append(struct btrfs_bio *bbio);
65 void btrfs_record_physical_zoned(struct btrfs_bio *bbio);
186 static inline bool btrfs_use_zone_append(struct btrfs_bio *bbio) in btrfs_use_zone_append() argument
191 static inline void btrfs_record_physical_zoned(struct btrfs_bio *bbio) in btrfs_record_physical_zoned() argument
Dcompression.h64 struct btrfs_bio bbio; member
95 void btrfs_submit_compressed_read(struct btrfs_bio *bbio);
Dinode.c94 struct btrfs_bio bbio; member
2547 static int btrfs_extract_ordered_extent(struct btrfs_bio *bbio, in btrfs_extract_ordered_extent() argument
2550 u64 start = (u64)bbio->bio.bi_iter.bi_sector << SECTOR_SHIFT; in btrfs_extract_ordered_extent()
2551 u64 len = bbio->bio.bi_iter.bi_size; in btrfs_extract_ordered_extent()
2562 bbio->ordered = ordered; in btrfs_extract_ordered_extent()
2571 ret = split_extent_map(bbio->inode, bbio->file_offset, in btrfs_extract_ordered_extent()
2581 bbio->ordered = new; in btrfs_extract_ordered_extent()
3283 bool btrfs_data_csum_ok(struct btrfs_bio *bbio, struct btrfs_device *dev, in btrfs_data_csum_ok() argument
3286 struct btrfs_inode *inode = bbio->inode; in btrfs_data_csum_ok()
3288 u64 file_offset = bbio->file_offset + bio_offset; in btrfs_data_csum_ok()
[all …]
Dzoned.c1615 bool btrfs_use_zone_append(struct btrfs_bio *bbio) in btrfs_use_zone_append() argument
1617 u64 start = (bbio->bio.bi_iter.bi_sector << SECTOR_SHIFT); in btrfs_use_zone_append()
1618 struct btrfs_inode *inode = bbio->inode; in btrfs_use_zone_append()
1619 struct btrfs_fs_info *fs_info = bbio->fs_info; in btrfs_use_zone_append()
1629 if (btrfs_op(&bbio->bio) != BTRFS_MAP_WRITE) in btrfs_use_zone_append()
1654 void btrfs_record_physical_zoned(struct btrfs_bio *bbio) in btrfs_record_physical_zoned() argument
1656 const u64 physical = bbio->bio.bi_iter.bi_sector << SECTOR_SHIFT; in btrfs_record_physical_zoned()
1657 struct btrfs_ordered_sum *sum = bbio->sums; in btrfs_record_physical_zoned()
1659 if (physical < bbio->orig_physical) in btrfs_record_physical_zoned()
1660 sum->logical -= bbio->orig_physical - physical; in btrfs_record_physical_zoned()
[all …]
Ddisk-io.h114 blk_status_t btree_csum_one_bio(struct btrfs_bio *bbio);
Dbtrfs_inode.h413 bool btrfs_data_csum_ok(struct btrfs_bio *bbio, struct btrfs_device *dev,
Dlzo.c333 const struct btrfs_fs_info *fs_info = cb->bbio.inode->root->fs_info; in lzo_decompress_bio()
Ddisk-io.c243 blk_status_t btree_csum_one_bio(struct btrfs_bio *bbio) in btree_csum_one_bio() argument
245 struct extent_buffer *eb = bbio->private; in btree_csum_one_bio()
252 if (WARN_ON_ONCE(bbio->file_offset != eb->start)) in btree_csum_one_bio()
254 if (WARN_ON_ONCE(bbio->bio.bi_iter.bi_size != eb->len)) in btree_csum_one_bio()
/linux-6.6.21/drivers/md/bcache/
Dio.c19 struct bbio *b = container_of(bio, struct bbio, bio); in bch_bbio_free()
26 struct bbio *b = mempool_alloc(&c->bio_meta, GFP_NOIO); in bch_bbio_alloc()
37 struct bbio *b = container_of(bio, struct bbio, bio); in __bch_submit_bbio()
49 struct bbio *b = container_of(bio, struct bbio, bio); in bch_submit_bbio()
140 struct bbio *b = container_of(bio, struct bbio, bio); in bch_bbio_count_io_errors()
Dmovinggc.c19 struct bbio bio;
64 struct bbio *b = container_of(bio, struct bbio, bio); in read_moving_endio()
Drequest.c467 struct bbio bio;
487 struct bbio *b = container_of(bio, struct bbio, bio); in bch_cache_read_endio()
554 bio_key = &container_of(n, struct bbio, bio)->key; in cache_lookup_fn()
Dbcache.h742 struct bbio { struct
Dsuper.c934 if (bioset_init(&d->bio_split, 4, offsetof(struct bbio, bio), in bcache_device_init()
1927 sizeof(struct bbio) + in bch_cache_set_alloc()
1934 if (bioset_init(&c->bio_split, 4, offsetof(struct bbio, bio), in bch_cache_set_alloc()