Searched refs:bbio (Results 1 – 9 of 9) sorted by relevance
/linux-4.19.296/fs/btrfs/ |
D | raid56.c | 47 struct btrfs_bio *bbio; member 268 u64 num = rbio->bbio->raid_map[0]; in rbio_bucket() 559 if (last->bbio->raid_map[0] != in rbio_can_merge() 560 cur->bbio->raid_map[0]) in rbio_can_merge() 672 if (cur->bbio->raid_map[0] == rbio->bbio->raid_map[0]) { in lock_stripe_add() 840 btrfs_put_bbio(rbio->bbio); in __free_raid_bio() 914 0 : rbio->bbio->max_errors; in raid_write_end_io() 969 struct btrfs_bio *bbio, in alloc_rbio() argument 974 int real_stripes = bbio->num_stripes - bbio->num_tgtdevs; in alloc_rbio() 995 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 | 5252 static void sort_parity_stripes(struct btrfs_bio *bbio, int num_stripes) in sort_parity_stripes() argument 5262 if (parity_smaller(bbio->raid_map[i], in sort_parity_stripes() 5263 bbio->raid_map[i+1])) { in sort_parity_stripes() 5264 s = bbio->stripes[i]; in sort_parity_stripes() 5265 l = bbio->raid_map[i]; in sort_parity_stripes() 5266 bbio->stripes[i] = bbio->stripes[i+1]; in sort_parity_stripes() 5267 bbio->raid_map[i] = bbio->raid_map[i+1]; in sort_parity_stripes() 5268 bbio->stripes[i+1] = s; in sort_parity_stripes() 5269 bbio->raid_map[i+1] = l; in sort_parity_stripes() 5279 struct btrfs_bio *bbio = kzalloc( in alloc_btrfs_bio() local [all …]
|
D | scrub.c | 56 struct btrfs_bio *bbio; member 259 (page->recover->bbio->map_type & BTRFS_BLOCK_GROUP_RAID56_MASK); in scrub_is_page_on_raid56() 815 btrfs_put_bbio(recover->bbio); in scrub_put_recover() 1029 int max_allowed = r->bbio->num_stripes - in scrub_handle_errored_block() 1030 r->bbio->num_tgtdevs; in scrub_handle_errored_block() 1219 static inline int scrub_nr_raid_mirrors(struct btrfs_bio *bbio) in scrub_nr_raid_mirrors() argument 1221 if (bbio->map_type & BTRFS_BLOCK_GROUP_RAID5) in scrub_nr_raid_mirrors() 1223 else if (bbio->map_type & BTRFS_BLOCK_GROUP_RAID6) in scrub_nr_raid_mirrors() 1226 return (int)bbio->num_stripes; in scrub_nr_raid_mirrors() 1270 struct btrfs_bio *bbio; in scrub_setup_recheck_block() local [all …]
|
D | reada.c | 224 struct btrfs_bio *bbio) in reada_find_zone() argument 272 for (i = 0; i < bbio->num_stripes; ++i) { in reada_find_zone() 274 zone->devs[i] = bbio->stripes[i].dev; in reada_find_zone() 276 zone->ndevs = bbio->num_stripes; in reada_find_zone() 305 struct btrfs_bio *bbio = NULL; in reada_find_extent() local 339 &length, &bbio, 0); in reada_find_extent() 340 if (ret || !bbio || length < fs_info->nodesize) in reada_find_extent() 343 if (bbio->num_stripes > BTRFS_MAX_MIRRORS) { in reada_find_extent() 350 real_stripes = bbio->num_stripes - bbio->num_tgtdevs; in reada_find_extent() 354 dev = bbio->stripes[nzones].dev; in reada_find_extent() [all …]
|
D | volumes.h | 401 void btrfs_get_bbio(struct btrfs_bio *bbio); 402 void btrfs_put_bbio(struct btrfs_bio *bbio);
|
D | extent_io.c | 2026 struct btrfs_bio *bbio = NULL; in repair_io_failure() local 2050 &map_length, &bbio, 0); in repair_io_failure() 2056 ASSERT(bbio->mirror_num == 1); in repair_io_failure() 2059 &map_length, &bbio, mirror_num); in repair_io_failure() 2065 BUG_ON(mirror_num != bbio->mirror_num); in repair_io_failure() 2068 sector = bbio->stripes[bbio->mirror_num - 1].physical >> 9; in repair_io_failure() 2070 dev = bbio->stripes[bbio->mirror_num - 1].dev; in repair_io_failure() 2071 btrfs_put_bbio(bbio); in repair_io_failure()
|
D | extent-tree.c | 1972 struct btrfs_bio *bbio = NULL; in btrfs_discard_extent() local 1982 &bbio, 0); in btrfs_discard_extent() 1985 struct btrfs_bio_stripe *stripe = bbio->stripes; in btrfs_discard_extent() 1989 for (i = 0; i < bbio->num_stripes; i++, stripe++) { in btrfs_discard_extent() 2021 btrfs_put_bbio(bbio); in btrfs_discard_extent()
|
/linux-4.19.296/block/ |
D | blk-merge.c | 241 struct bio *fbio, *bbio; in __blk_recalc_rq_segments() local 292 bbio = bio; in __blk_recalc_rq_segments() 297 if (seg_size > bbio->bi_seg_back_size) in __blk_recalc_rq_segments() 298 bbio->bi_seg_back_size = seg_size; in __blk_recalc_rq_segments()
|