Home
last modified time | relevance | path

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

/Linux-v5.15/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()
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()
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.h738 struct bbio { struct
Dsuper.c936 if (bioset_init(&d->bio_split, 4, offsetof(struct bbio, bio), in bcache_device_init()
1932 sizeof(struct bbio) + in bch_cache_set_alloc()
1939 if (bioset_init(&c->bio_split, 4, offsetof(struct bbio, bio), in bch_cache_set_alloc()
/Linux-v5.15/fs/btrfs/
Draid56.c64 struct btrfs_bio *bbio; member
274 u64 num = rbio->bbio->raid_map[0]; in rbio_bucket()
562 if (last->bbio->raid_map[0] != in rbio_can_merge()
563 cur->bbio->raid_map[0]) in rbio_can_merge()
676 if (cur->bbio->raid_map[0] != rbio->bbio->raid_map[0]) in lock_stripe_add()
841 btrfs_put_bbio(rbio->bbio); in __free_raid_bio()
909 0 : rbio->bbio->max_errors; in raid_write_end_io()
964 struct btrfs_bio *bbio, in alloc_rbio() argument
969 int real_stripes = bbio->num_stripes - bbio->num_tgtdevs; in alloc_rbio()
990 rbio->bbio = bbio; in alloc_rbio()
[all …]
Draid56.h34 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);
Dvolumes.c5798 static void sort_parity_stripes(struct btrfs_bio *bbio, int num_stripes) in sort_parity_stripes() argument
5807 if (bbio->raid_map[i] > bbio->raid_map[i + 1]) { in sort_parity_stripes()
5808 swap(bbio->stripes[i], bbio->stripes[i + 1]); in sort_parity_stripes()
5809 swap(bbio->raid_map[i], bbio->raid_map[i + 1]); in sort_parity_stripes()
5818 struct btrfs_bio *bbio = kzalloc( in alloc_btrfs_bio() local
5832 atomic_set(&bbio->error, 0); in alloc_btrfs_bio()
5833 refcount_set(&bbio->refs, 1); in alloc_btrfs_bio()
5835 bbio->tgtdev_map = (int *)(bbio->stripes + total_stripes); in alloc_btrfs_bio()
5836 bbio->raid_map = (u64 *)(bbio->tgtdev_map + real_stripes); in alloc_btrfs_bio()
5838 return bbio; in alloc_btrfs_bio()
[all …]
Dscrub.c60 struct btrfs_bio *bbio; member
257 (spage->recover->bbio->map_type & BTRFS_BLOCK_GROUP_RAID56_MASK); in scrub_is_page_on_raid56()
801 btrfs_put_bbio(recover->bbio); in scrub_put_recover()
1030 int max_allowed = r->bbio->num_stripes - in scrub_handle_errored_block()
1031 r->bbio->num_tgtdevs; in scrub_handle_errored_block()
1221 static inline int scrub_nr_raid_mirrors(struct btrfs_bio *bbio) in scrub_nr_raid_mirrors() argument
1223 if (bbio->map_type & BTRFS_BLOCK_GROUP_RAID5) in scrub_nr_raid_mirrors()
1225 else if (bbio->map_type & BTRFS_BLOCK_GROUP_RAID6) in scrub_nr_raid_mirrors()
1228 return (int)bbio->num_stripes; in scrub_nr_raid_mirrors()
1272 struct btrfs_bio *bbio; in scrub_setup_recheck_block() local
[all …]
Dreada.c230 struct btrfs_bio *bbio) in reada_find_zone() argument
278 for (i = 0; i < bbio->num_stripes; ++i) { in reada_find_zone()
280 zone->devs[i] = bbio->stripes[i].dev; in reada_find_zone()
282 zone->ndevs = bbio->num_stripes; in reada_find_zone()
312 struct btrfs_bio *bbio = NULL; in reada_find_extent() local
348 &length, &bbio, 0); in reada_find_extent()
349 if (ret || !bbio || length < fs_info->nodesize) in reada_find_extent()
352 if (bbio->num_stripes > BTRFS_MAX_MIRRORS) { in reada_find_extent()
359 real_stripes = bbio->num_stripes - bbio->num_tgtdevs; in reada_find_extent()
363 dev = bbio->stripes[nzones].dev; in reada_find_extent()
[all …]
Dzoned.c1443 struct btrfs_bio *bbio = NULL; in read_zone_info() local
1450 &mapped_length, &bbio); in read_zone_info()
1451 if (ret || !bbio || mapped_length < PAGE_SIZE) { in read_zone_info()
1452 btrfs_put_bbio(bbio); in read_zone_info()
1456 if (bbio->map_type & BTRFS_BLOCK_GROUP_RAID56_MASK) in read_zone_info()
1460 nmirrors = (int)bbio->num_stripes; in read_zone_info()
1462 u64 physical = bbio->stripes[i].physical; in read_zone_info()
1463 struct btrfs_device *dev = bbio->stripes[i].dev; in read_zone_info()
Dvolumes.h440 void btrfs_get_bbio(struct btrfs_bio *bbio);
441 void btrfs_put_bbio(struct btrfs_bio *bbio);
Dextent_io.c2293 struct btrfs_bio *bbio = NULL; in repair_io_failure() local
2320 &map_length, &bbio, 0); in repair_io_failure()
2326 ASSERT(bbio->mirror_num == 1); in repair_io_failure()
2329 &map_length, &bbio, mirror_num); in repair_io_failure()
2335 BUG_ON(mirror_num != bbio->mirror_num); in repair_io_failure()
2338 sector = bbio->stripes[bbio->mirror_num - 1].physical >> 9; in repair_io_failure()
2340 dev = bbio->stripes[bbio->mirror_num - 1].dev; in repair_io_failure()
2341 btrfs_put_bbio(bbio); in repair_io_failure()
Dextent-tree.c1316 struct btrfs_bio *bbio = NULL; in btrfs_discard_extent() local
1331 &num_bytes, &bbio, 0); in btrfs_discard_extent()
1340 stripe = bbio->stripes; in btrfs_discard_extent()
1341 for (i = 0; i < bbio->num_stripes; i++, stripe++) { in btrfs_discard_extent()
1364 btrfs_put_bbio(bbio); in btrfs_discard_extent()
1375 btrfs_put_bbio(bbio); in btrfs_discard_extent()