/linux-master/fs/btrfs/ |
H A D | bio.c | 24 struct btrfs_bio *bbio; member in struct:btrfs_failed_bio 30 static inline bool is_data_bbio(struct btrfs_bio *bbio) argument 32 return bbio->inode && is_data_inode(&bbio->inode->vfs_inode); 35 static bool bbio_has_ordered_extent(struct btrfs_bio *bbio) argument 37 return is_data_bbio(bbio) && btrfs_op(&bbio->bio) == BTRFS_MAP_WRITE; 44 void btrfs_bio_init(struct btrfs_bio *bbio, struct btrfs_fs_info *fs_info, argument 47 memset(bbio, 0, offsetof(struct btrfs_bio, bio)); 48 bbio 65 struct btrfs_bio *bbio; local 78 struct btrfs_bio *bbio; local 104 btrfs_cleanup_bio(struct btrfs_bio *bbio) argument 111 __btrfs_bio_end_io(struct btrfs_bio *bbio) argument 123 btrfs_bio_end_io(struct btrfs_bio *bbio, blk_status_t status) argument 131 btrfs_bbio_propagate_error(struct btrfs_bio *bbio, struct btrfs_bio *orig_bbio) argument 150 btrfs_orig_bbio_end_io(struct btrfs_bio *bbio) argument 287 btrfs_check_read_bio(struct btrfs_bio *bbio, struct btrfs_device *dev) argument 357 struct btrfs_bio *bbio = container_of(work, struct btrfs_bio, end_io_work); local 368 struct btrfs_bio *bbio = btrfs_bio(bio); local 390 struct btrfs_bio *bbio = btrfs_bio(bio); local 406 struct btrfs_bio *bbio = btrfs_bio(bio); local 535 btrfs_bio_csum(struct btrfs_bio *bbio) argument 547 struct btrfs_bio *bbio; member in struct:async_submit_bio 609 should_async_write(struct btrfs_bio *bbio) argument 646 btrfs_wq_submit_bio(struct btrfs_bio *bbio, struct btrfs_io_context *bioc, struct btrfs_io_stripe *smap, int mirror_num) argument 667 btrfs_submit_chunk(struct btrfs_bio *bbio, int mirror_num) argument 765 btrfs_submit_bio(struct btrfs_bio *bbio, int mirror_num) argument 844 btrfs_submit_repair_write(struct btrfs_bio *bbio, int mirror_num, bool dev_replace) argument [all...] |
H A D | bio.h | 28 typedef void (*btrfs_bio_end_io_t)(struct btrfs_bio *bbio); 97 void btrfs_bio_init(struct btrfs_bio *bbio, struct btrfs_fs_info *fs_info, 102 void btrfs_bio_end_io(struct btrfs_bio *bbio, blk_status_t status); 107 void btrfs_submit_bio(struct btrfs_bio *bbio, int mirror_num); 108 void btrfs_submit_repair_write(struct btrfs_bio *bbio, int mirror_num, bool dev_replace);
|
H A D | file-item.h | 54 blk_status_t btrfs_lookup_bio_sums(struct btrfs_bio *bbio); 65 blk_status_t btrfs_csum_one_bio(struct btrfs_bio *bbio); 66 blk_status_t btrfs_alloc_dummy_sum(struct btrfs_bio *bbio);
|
H A D | compression.c | 57 static inline struct compressed_bio *to_compressed_bio(struct btrfs_bio *bbio) argument 59 return container_of(bbio, struct compressed_bio, bbio); 66 struct btrfs_bio *bbio; local 68 bbio = btrfs_bio(bio_alloc_bioset(NULL, BTRFS_MAX_COMPRESSED_PAGES, op, 70 btrfs_bio_init(bbio, inode->root->fs_info, end_io, NULL); 71 bbio->inode = inode; 72 bbio->file_offset = start; 73 return to_compressed_bio(bbio); 264 static void end_bbio_comprssed_read(struct btrfs_bio *bbio) argument 337 end_bbio_comprssed_write(struct btrfs_bio *bbio) argument 560 btrfs_submit_compressed_read(struct btrfs_bio *bbio) argument [all...] |
H A D | scrub.c | 783 static void scrub_repair_read_endio(struct btrfs_bio *bbio) argument 785 struct scrub_stripe *stripe = bbio->private; 788 int sector_nr = calc_sector_number(stripe, bio_first_bvec_all(&bbio->bio)); 794 bio_for_each_bvec_all(bvec, &bbio->bio, i) 797 if (bbio->bio.bi_status) { 806 bio_put(&bbio->bio); 821 struct btrfs_bio *bbio = NULL; local 837 if (bbio && ((i > 0 && !test_bit(i - 1, &stripe->error_bitmap)) || 838 bbio->bio.bi_iter.bi_size >= blocksize)) { 839 ASSERT(bbio 1098 scrub_read_endio(struct btrfs_bio *bbio) argument 1126 scrub_write_endio(struct btrfs_bio *bbio) argument 1152 scrub_submit_write_bio(struct scrub_ctx *sctx, struct scrub_stripe *stripe, struct btrfs_bio *bbio, bool dev_replace) argument 1198 struct btrfs_bio *bbio = NULL; local 1655 struct btrfs_bio *bbio = NULL; local 1727 struct btrfs_bio *bbio; local [all...] |
H A D | file-item.c | 340 blk_status_t btrfs_lookup_bio_sums(struct btrfs_bio *bbio) argument 342 struct btrfs_inode *inode = bbio->inode; 344 struct bio *bio = &bbio->bio; 376 bbio->csum = kmalloc_array(nblocks, csum_size, GFP_NOFS); 377 if (!bbio->csum) { 382 bbio->csum = bbio->csum_inline; 406 u8 *csum_dst = bbio->csum + 413 if (bbio->csum != bbio 728 btrfs_csum_one_bio(struct btrfs_bio *bbio) argument 787 btrfs_alloc_dummy_sum(struct btrfs_bio *bbio) argument [all...] |
H A D | extent_io.c | 98 struct btrfs_bio *bbio; member in struct:btrfs_bio_ctrl 108 struct btrfs_bio *bbio = bio_ctrl->bbio; local 110 if (!bbio) 114 ASSERT(bbio->bio.bi_iter.bi_size); 116 if (btrfs_op(&bbio->bio) == BTRFS_MAP_READ && 118 btrfs_submit_compressed_read(bbio); 120 btrfs_submit_bio(bbio, 0); 122 /* The bbio is owned by the end_io handler now */ 123 bio_ctrl->bbio 131 struct btrfs_bio *bbio = bio_ctrl->bbio; local 462 end_bbio_data_write(struct btrfs_bio *bbio) argument 592 end_bbio_data_read(struct btrfs_bio *bbio) argument 772 struct btrfs_bio *bbio; local 1645 end_bbio_meta_write(struct btrfs_bio *bbio) argument 1704 struct btrfs_bio *bbio; local 4273 end_bbio_meta_read(struct btrfs_bio *bbio) argument 4318 struct btrfs_bio *bbio; local [all...] |
H A D | compression.h | 72 struct btrfs_bio bbio; member in struct:compressed_bio 103 void btrfs_submit_compressed_read(struct btrfs_bio *bbio);
|
H A D | zoned.h | 77 bool btrfs_use_zone_append(struct btrfs_bio *bbio); 78 void btrfs_record_physical_zoned(struct btrfs_bio *bbio); 197 static inline bool btrfs_use_zone_append(struct btrfs_bio *bbio) argument 202 static inline void btrfs_record_physical_zoned(struct btrfs_bio *bbio) argument
|
H A D | disk-io.h | 123 blk_status_t btree_csum_one_bio(struct btrfs_bio *bbio);
|
H A D | inode.c | 93 struct btrfs_bio bbio; member in struct:btrfs_dio_private 2579 static int btrfs_extract_ordered_extent(struct btrfs_bio *bbio, argument 2582 u64 start = (u64)bbio->bio.bi_iter.bi_sector << SECTOR_SHIFT; 2583 u64 len = bbio->bio.bi_iter.bi_size; 2594 bbio->ordered = ordered; 2603 ret = split_extent_map(bbio->inode, bbio->file_offset, 2613 bbio->ordered = new; 3315 * @bbio: btrfs_io_bio which contains the csum 3325 bool btrfs_data_csum_ok(struct btrfs_bio *bbio, struc argument 7769 btrfs_dio_end_io(struct btrfs_bio *bbio) argument 7799 struct btrfs_bio *bbio = btrfs_bio(bio); local 10020 btrfs_encoded_read_endio(struct btrfs_bio *bbio) argument 10049 struct btrfs_bio *bbio; local [all...] |
H A D | zoned.c | 1716 bool btrfs_use_zone_append(struct btrfs_bio *bbio) argument 1718 u64 start = (bbio->bio.bi_iter.bi_sector << SECTOR_SHIFT); 1719 struct btrfs_inode *inode = bbio->inode; 1720 struct btrfs_fs_info *fs_info = bbio->fs_info; 1730 if (btrfs_op(&bbio->bio) != BTRFS_MAP_WRITE) 1755 void btrfs_record_physical_zoned(struct btrfs_bio *bbio) argument 1757 const u64 physical = bbio->bio.bi_iter.bi_sector << SECTOR_SHIFT; 1758 struct btrfs_ordered_sum *sum = bbio->sums; 1760 if (physical < bbio->orig_physical) 1761 sum->logical -= bbio [all...] |
H A D | lzo.c | 333 const struct btrfs_fs_info *fs_info = cb->bbio.inode->root->fs_info;
|
H A D | btrfs_inode.h | 443 bool btrfs_data_csum_ok(struct btrfs_bio *bbio, struct btrfs_device *dev,
|
H A D | disk-io.c | 260 blk_status_t btree_csum_one_bio(struct btrfs_bio *bbio) argument 262 struct extent_buffer *eb = bbio->private; 270 if (WARN_ON_ONCE(bbio->file_offset != eb->start)) 272 if (WARN_ON_ONCE(bbio->bio.bi_iter.bi_size != eb->len))
|
/linux-master/drivers/md/bcache/ |
H A D | io.c | 19 struct bbio *b = container_of(bio, struct bbio, bio); 26 struct bbio *b = mempool_alloc(&c->bio_meta, GFP_NOIO); 37 struct bbio *b = container_of(bio, struct bbio, bio); 49 struct bbio *b = container_of(bio, struct bbio, bio); 140 struct bbio *b = container_of(bio, struct bbio, bio);
|
H A D | movinggc.c | 19 struct bbio bio; 64 struct bbio *b = container_of(bio, struct bbio, bio);
|
H A D | request.c | 467 struct bbio bio; 487 struct bbio *b = container_of(bio, struct bbio, bio); 554 bio_key = &container_of(n, struct bbio, bio)->key;
|
H A D | bcache.h | 744 struct bbio { struct
|
H A D | super.c | 948 if (bioset_init(&d->bio_split, 4, offsetof(struct bbio, bio), 1928 sizeof(struct bbio) + 1935 if (bioset_init(&c->bio_split, 4, offsetof(struct bbio, bio),
|