| /Linux-v5.4/drivers/md/bcache/ |
| D | io.c | 19 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() 36 struct bbio *b = container_of(bio, struct bbio, bio); in __bch_submit_bbio() 48 struct bbio *b = container_of(bio, struct bbio, bio); in bch_submit_bbio() 139 struct bbio *b = container_of(bio, struct bbio, bio); in bch_bbio_count_io_errors()
|
| D | movinggc.c | 19 struct bbio bio; 64 struct bbio *b = container_of(bio, struct bbio, bio); in read_moving_endio()
|
| D | request.c | 472 struct bbio bio; 491 struct bbio *b = container_of(bio, struct bbio, bio); in bch_cache_read_endio() 558 bio_key = &container_of(n, struct bbio, bio)->key; in cache_lookup_fn()
|
| D | bcache.h | 731 struct bbio { struct
|
| D | super.c | 822 if (bioset_init(&d->bio_split, 4, offsetof(struct bbio, bio), in bcache_device_init() 1795 sizeof(struct bbio) + sizeof(struct bio_vec) * in bch_cache_set_alloc() 1798 bioset_init(&c->bio_split, 4, offsetof(struct bbio, bio), in bch_cache_set_alloc()
|
| /Linux-v5.4/fs/btrfs/ |
| D | raid56.c | 63 struct btrfs_bio *bbio; member 284 u64 num = rbio->bbio->raid_map[0]; in rbio_bucket() 572 if (last->bbio->raid_map[0] != in rbio_can_merge() 573 cur->bbio->raid_map[0]) in rbio_can_merge() 685 if (cur->bbio->raid_map[0] == rbio->bbio->raid_map[0]) { in lock_stripe_add() 853 btrfs_put_bbio(rbio->bbio); in __free_raid_bio() 921 0 : rbio->bbio->max_errors; in raid_write_end_io() 976 struct btrfs_bio *bbio, in alloc_rbio() argument 981 int real_stripes = bbio->num_stripes - bbio->num_tgtdevs; in alloc_rbio() 1002 rbio->bbio = bbio; in alloc_rbio() [all …]
|
| D | raid56.h | 34 struct btrfs_bio *bbio, u64 stripe_len, 37 struct btrfs_bio *bbio, u64 stripe_len); 44 struct btrfs_bio *bbio, u64 stripe_len, 51 struct btrfs_bio *bbio, u64 length);
|
| D | volumes.c | 5519 static void sort_parity_stripes(struct btrfs_bio *bbio, int num_stripes) in sort_parity_stripes() argument 5529 if (parity_smaller(bbio->raid_map[i], in sort_parity_stripes() 5530 bbio->raid_map[i+1])) { in sort_parity_stripes() 5531 s = bbio->stripes[i]; in sort_parity_stripes() 5532 l = bbio->raid_map[i]; in sort_parity_stripes() 5533 bbio->stripes[i] = bbio->stripes[i+1]; in sort_parity_stripes() 5534 bbio->raid_map[i] = bbio->raid_map[i+1]; in sort_parity_stripes() 5535 bbio->stripes[i+1] = s; in sort_parity_stripes() 5536 bbio->raid_map[i+1] = l; in sort_parity_stripes() 5546 struct btrfs_bio *bbio = kzalloc( in alloc_btrfs_bio() local [all …]
|
| D | scrub.c | 58 struct btrfs_bio *bbio; member 261 (page->recover->bbio->map_type & BTRFS_BLOCK_GROUP_RAID56_MASK); in scrub_is_page_on_raid56() 809 btrfs_put_bbio(recover->bbio); in scrub_put_recover() 1035 int max_allowed = r->bbio->num_stripes - in scrub_handle_errored_block() 1036 r->bbio->num_tgtdevs; in scrub_handle_errored_block() 1226 static inline int scrub_nr_raid_mirrors(struct btrfs_bio *bbio) in scrub_nr_raid_mirrors() argument 1228 if (bbio->map_type & BTRFS_BLOCK_GROUP_RAID5) in scrub_nr_raid_mirrors() 1230 else if (bbio->map_type & BTRFS_BLOCK_GROUP_RAID6) in scrub_nr_raid_mirrors() 1233 return (int)bbio->num_stripes; in scrub_nr_raid_mirrors() 1277 struct btrfs_bio *bbio; in scrub_setup_recheck_block() local [all …]
|
| D | reada.c | 225 struct btrfs_bio *bbio) in reada_find_zone() argument 273 for (i = 0; i < bbio->num_stripes; ++i) { in reada_find_zone() 275 zone->devs[i] = bbio->stripes[i].dev; in reada_find_zone() 277 zone->ndevs = bbio->num_stripes; in reada_find_zone() 306 struct btrfs_bio *bbio = NULL; in reada_find_extent() local 340 &length, &bbio, 0); in reada_find_extent() 341 if (ret || !bbio || length < fs_info->nodesize) in reada_find_extent() 344 if (bbio->num_stripes > BTRFS_MAX_MIRRORS) { in reada_find_extent() 351 real_stripes = bbio->num_stripes - bbio->num_tgtdevs; in reada_find_extent() 355 dev = bbio->stripes[nzones].dev; in reada_find_extent() [all …]
|
| D | volumes.h | 422 void btrfs_get_bbio(struct btrfs_bio *bbio); 423 void btrfs_put_bbio(struct btrfs_bio *bbio);
|
| D | extent_io.c | 2183 struct btrfs_bio *bbio = NULL; in repair_io_failure() local 2207 &map_length, &bbio, 0); in repair_io_failure() 2213 ASSERT(bbio->mirror_num == 1); in repair_io_failure() 2216 &map_length, &bbio, mirror_num); in repair_io_failure() 2222 BUG_ON(mirror_num != bbio->mirror_num); in repair_io_failure() 2225 sector = bbio->stripes[bbio->mirror_num - 1].physical >> 9; in repair_io_failure() 2227 dev = bbio->stripes[bbio->mirror_num - 1].dev; in repair_io_failure() 2228 btrfs_put_bbio(bbio); in repair_io_failure()
|
| D | extent-tree.c | 1311 struct btrfs_bio *bbio = NULL; in btrfs_discard_extent() local 1321 &bbio, 0); in btrfs_discard_extent() 1324 struct btrfs_bio_stripe *stripe = bbio->stripes; in btrfs_discard_extent() 1328 for (i = 0; i < bbio->num_stripes; i++, stripe++) { in btrfs_discard_extent() 1356 btrfs_put_bbio(bbio); in btrfs_discard_extent()
|