Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/md/bcache/
Dio.c18 struct bbio *b = container_of(bio, struct bbio, bio); in bch_bbio_free()
24 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()
111 struct bbio *b = container_of(bio, struct bbio, bio); in bch_bbio_count_io_errors()
Dmovinggc.c18 struct bbio bio;
65 struct bbio *b = container_of(bio, struct bbio, bio); in read_moving_endio()
Drequest.c464 struct bbio bio;
482 struct bbio *b = container_of(bio, struct bbio, bio); in bch_cache_read_endio()
549 bio_key = &container_of(n, struct bbio, bio)->key; in cache_lookup_fn()
Dbcache.h667 struct bbio { struct
Dsuper.c784 if (!(d->bio_split = bioset_create(4, offsetof(struct bbio, bio))) || in bcache_device_init()
1516 sizeof(struct bbio) + sizeof(struct bio_vec) * in bch_cache_set_alloc()
1519 !(c->bio_split = bioset_create(4, offsetof(struct bbio, bio))) || in bch_cache_set_alloc()
/linux-4.4.14/fs/btrfs/
Draid56.c72 struct btrfs_bio *bbio; member
287 u64 num = rbio->bbio->raid_map[0]; in rbio_bucket()
587 if (last->bbio->raid_map[0] != in rbio_can_merge()
588 cur->bbio->raid_map[0]) in rbio_can_merge()
674 if (cur->bbio->raid_map[0] == rbio->bbio->raid_map[0]) { in lock_stripe_add()
852 btrfs_put_bbio(rbio->bbio); in __free_raid_bio()
905 if (atomic_read(&rbio->error) > rbio->bbio->max_errors) in raid_write_end_io()
961 struct btrfs_bio *bbio, u64 stripe_len) in alloc_rbio() argument
965 int real_stripes = bbio->num_stripes - bbio->num_tgtdevs; in alloc_rbio()
981 rbio->bbio = bbio; in alloc_rbio()
[all …]
Draid56.h46 struct btrfs_bio *bbio, u64 stripe_len,
49 struct btrfs_bio *bbio, u64 stripe_len);
56 struct btrfs_bio *bbio, u64 stripe_len,
63 struct btrfs_bio *bbio, u64 length);
Dreada.c250 struct btrfs_bio *bbio) in reada_find_zone() argument
295 for (i = 0; i < bbio->num_stripes; ++i) { in reada_find_zone()
297 zone->devs[i] = bbio->stripes[i].dev; in reada_find_zone()
299 zone->ndevs = bbio->num_stripes; in reada_find_zone()
326 struct btrfs_bio *bbio = NULL; in reada_find_extent() local
362 &bbio, 0); in reada_find_extent()
363 if (ret || !bbio || length < blocksize) in reada_find_extent()
366 if (bbio->num_stripes > BTRFS_MAX_MIRRORS) { in reada_find_extent()
373 real_stripes = bbio->num_stripes - bbio->num_tgtdevs; in reada_find_extent()
377 dev = bbio->stripes[nzones].dev; in reada_find_extent()
[all …]
Dvolumes.c5147 static void sort_parity_stripes(struct btrfs_bio *bbio, int num_stripes) in sort_parity_stripes() argument
5157 if (parity_smaller(bbio->raid_map[i], in sort_parity_stripes()
5158 bbio->raid_map[i+1])) { in sort_parity_stripes()
5159 s = bbio->stripes[i]; in sort_parity_stripes()
5160 l = bbio->raid_map[i]; in sort_parity_stripes()
5161 bbio->stripes[i] = bbio->stripes[i+1]; in sort_parity_stripes()
5162 bbio->raid_map[i] = bbio->raid_map[i+1]; in sort_parity_stripes()
5163 bbio->stripes[i+1] = s; in sort_parity_stripes()
5164 bbio->raid_map[i+1] = l; in sort_parity_stripes()
5174 struct btrfs_bio *bbio = kzalloc( in alloc_btrfs_bio() local
[all …]
Dscrub.c68 struct btrfs_bio *bbio; member
867 btrfs_put_bbio(recover->bbio); in scrub_put_recover()
1260 static inline int scrub_nr_raid_mirrors(struct btrfs_bio *bbio) in scrub_nr_raid_mirrors() argument
1262 if (bbio->map_type & BTRFS_BLOCK_GROUP_RAID5) in scrub_nr_raid_mirrors()
1264 else if (bbio->map_type & BTRFS_BLOCK_GROUP_RAID6) in scrub_nr_raid_mirrors()
1267 return (int)bbio->num_stripes; in scrub_nr_raid_mirrors()
1311 struct btrfs_bio *bbio; in scrub_setup_recheck_block() local
1330 bbio = NULL; in scrub_setup_recheck_block()
1337 &mapped_length, &bbio, 0, 1); in scrub_setup_recheck_block()
1338 if (ret || !bbio || mapped_length < sublen) { in scrub_setup_recheck_block()
[all …]
Dvolumes.h422 void btrfs_get_bbio(struct btrfs_bio *bbio);
423 void btrfs_put_bbio(struct btrfs_bio *bbio);
Dextent_io.c2102 struct btrfs_bio *bbio = NULL; in repair_io_failure() local
2120 &map_length, &bbio, mirror_num); in repair_io_failure()
2125 BUG_ON(mirror_num != bbio->mirror_num); in repair_io_failure()
2126 sector = bbio->stripes[mirror_num-1].physical >> 9; in repair_io_failure()
2128 dev = bbio->stripes[mirror_num-1].dev; in repair_io_failure()
2129 btrfs_put_bbio(bbio); in repair_io_failure()
Dextent-tree.c2026 struct btrfs_bio *bbio = NULL; in btrfs_discard_extent() local
2031 bytenr, &num_bytes, &bbio, 0); in btrfs_discard_extent()
2034 struct btrfs_bio_stripe *stripe = bbio->stripes; in btrfs_discard_extent()
2038 for (i = 0; i < bbio->num_stripes; i++, stripe++) { in btrfs_discard_extent()
2059 btrfs_put_bbio(bbio); in btrfs_discard_extent()
/linux-4.4.14/block/
Dblk-merge.c203 struct bio *fbio, *bbio; in __blk_recalc_rq_segments() local
255 bbio = bio; in __blk_recalc_rq_segments()
260 if (seg_size > bbio->bi_seg_back_size) in __blk_recalc_rq_segments()
261 bbio->bi_seg_back_size = seg_size; in __blk_recalc_rq_segments()