Home
last modified time | relevance | path

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

/linux-6.1.9/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.h741 struct bbio { struct
Dsuper.c932 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()
/linux-6.1.9/fs/btrfs/
Dvolumes.h389 typedef void (*btrfs_bio_end_io_t)(struct btrfs_bio *bbio);
435 static inline void btrfs_bio_end_io(struct btrfs_bio *bbio, blk_status_t status) in btrfs_bio_end_io() argument
437 bbio->bio.bi_status = status; in btrfs_bio_end_io()
438 bbio->end_io(bbio); in btrfs_bio_end_io()
441 static inline void btrfs_bio_free_csum(struct btrfs_bio *bbio) in btrfs_bio_free_csum() argument
443 if (bbio->csum != bbio->csum_inline) { in btrfs_bio_free_csum()
444 kfree(bbio->csum); in btrfs_bio_free_csum()
445 bbio->csum = NULL; in btrfs_bio_free_csum()
457 #define btrfs_bio_for_each_sector(fs_info, bvl, bbio, iter, bio_offset) \ argument
458 for ((iter) = (bbio)->iter, (bio_offset) = 0; \
[all …]
Dcompression.c169 static void end_compressed_bio_read(struct btrfs_bio *bbio) in end_compressed_bio_read() argument
171 struct compressed_bio *cb = bbio->private; in end_compressed_bio_read()
177 blk_status_t status = bbio->bio.bi_status; in end_compressed_bio_read()
182 btrfs_bio_for_each_sector(fs_info, bv, bbio, iter, offset) { in end_compressed_bio_read()
183 u64 start = bbio->file_offset + offset; in end_compressed_bio_read()
186 (!csum || !btrfs_check_data_csum(inode, bbio, offset, in end_compressed_bio_read()
194 ret = btrfs_repair_one_sector(inode, bbio, offset, in end_compressed_bio_read()
209 btrfs_bio_free_csum(bbio); in end_compressed_bio_read()
210 bio_put(&bbio->bio); in end_compressed_bio_read()
300 static void end_compressed_bio_write(struct btrfs_bio *bbio) in end_compressed_bio_write() argument
[all …]
Dfile-item.c379 struct btrfs_bio *bbio = NULL; in btrfs_lookup_bio_sums() local
413 bbio = btrfs_bio(bio); in btrfs_lookup_bio_sums()
416 bbio->csum = kmalloc_array(nblocks, csum_size, GFP_NOFS); in btrfs_lookup_bio_sums()
417 if (!bbio->csum) { in btrfs_lookup_bio_sums()
422 bbio->csum = bbio->csum_inline; in btrfs_lookup_bio_sums()
424 csum = bbio->csum; in btrfs_lookup_bio_sums()
471 if (bbio) in btrfs_lookup_bio_sums()
472 btrfs_bio_free_csum(bbio); in btrfs_lookup_bio_sums()
Dextent_io.c740 struct btrfs_bio *bbio, in btrfs_get_io_failure_record() argument
744 u64 start = bbio->file_offset + bio_offset; in btrfs_get_io_failure_record()
759 ASSERT(failrec->this_mirror == bbio->mirror_num); in btrfs_get_io_failure_record()
771 failrec->failed_mirror = bbio->mirror_num; in btrfs_get_io_failure_record()
772 failrec->this_mirror = bbio->mirror_num; in btrfs_get_io_failure_record()
773 failrec->logical = (bbio->iter.bi_sector << SECTOR_SHIFT) + bio_offset; in btrfs_get_io_failure_record()
1013 static void end_bio_extent_writepage(struct btrfs_bio *bbio) in end_bio_extent_writepage() argument
1015 struct bio *bio = &bbio->bio; in end_bio_extent_writepage()
1175 static void end_bio_extent_readpage(struct btrfs_bio *bbio) in end_bio_extent_readpage() argument
1177 struct bio *bio = &bbio->bio; in end_bio_extent_readpage()
[all …]
Ddisk-io.h85 int btrfs_validate_metadata_buffer(struct btrfs_bio *bbio,
Dvolumes.c6673 static inline void btrfs_bio_init(struct btrfs_bio *bbio, in btrfs_bio_init() argument
6676 memset(bbio, 0, offsetof(struct btrfs_bio, bio)); in btrfs_bio_init()
6677 bbio->end_io = end_io; in btrfs_bio_init()
6678 bbio->private = private; in btrfs_bio_init()
6702 struct btrfs_bio *bbio; in btrfs_bio_clone_partial() local
6707 bbio = btrfs_bio(bio); in btrfs_bio_clone_partial()
6708 btrfs_bio_init(bbio, end_io, private); in btrfs_bio_clone_partial()
6711 bbio->iter = bio->bi_iter; in btrfs_bio_clone_partial()
6740 struct btrfs_bio *bbio = in btrfs_end_bio_work() local
6743 bbio->end_io(bbio); in btrfs_end_bio_work()
[all …]
Dinode.c3462 int btrfs_check_data_csum(struct inode *inode, struct btrfs_bio *bbio, in btrfs_check_data_csum() argument
3472 csum_expected = btrfs_csum_ptr(fs_info, bbio->csum, bio_offset); in btrfs_check_data_csum()
3480 bbio->file_offset + bio_offset, in btrfs_check_data_csum()
3481 csum, csum_expected, bbio->mirror_num); in btrfs_check_data_csum()
3482 if (bbio->device) in btrfs_check_data_csum()
3483 btrfs_dev_stat_inc_and_print(bbio->device, in btrfs_check_data_csum()
3501 unsigned int btrfs_verify_data_csum(struct btrfs_bio *bbio, in btrfs_verify_data_csum() argument
3518 if (bbio->csum == NULL) in btrfs_verify_data_csum()
3545 ret = btrfs_check_data_csum(inode, bbio, bio_offset, page, pg_off); in btrfs_verify_data_csum()
7841 struct btrfs_bio *bbio, in btrfs_check_read_dio_bio() argument
[all …]
Ddisk-io.c586 int btrfs_validate_metadata_buffer(struct btrfs_bio *bbio, in btrfs_validate_metadata_buffer() argument
657 struct btrfs_bio *bbio = btrfs_bio(async->bio); in run_one_async_done() local
661 btrfs_bio_end_io(bbio, async->status); in run_one_async_done()
762 struct btrfs_bio *bbio = btrfs_bio(bio); in btrfs_submit_metadata_bio() local
782 btrfs_bio_end_io(bbio, ret); in btrfs_submit_metadata_bio()
Dctree.h3359 int btrfs_check_data_csum(struct inode *inode, struct btrfs_bio *bbio,
3361 unsigned int btrfs_verify_data_csum(struct btrfs_bio *bbio,
3364 int btrfs_check_data_csum(struct inode *inode, struct btrfs_bio *bbio,