Searched refs:bioc (Results 1 – 9 of 9) sorted by relevance
/linux/fs/btrfs/ |
A D | raid56.c | 561 if (last->bioc->raid_map[0] != cur->bioc->raid_map[0]) in rbio_can_merge() 674 if (cur->bioc->raid_map[0] != rbio->bioc->raid_map[0]) in lock_stripe_add() 967 int real_stripes = bioc->num_stripes - bioc->num_tgtdevs; in alloc_rbio() 988 rbio->bioc = bioc; in alloc_rbio() 1179 struct btrfs_io_context *bioc = rbio->bioc; in finish_rmw() local 1730 btrfs_put_bioc(bioc); in raid56_parity_write() 2132 btrfs_put_bioc(bioc); in raid56_parity_recover() 2147 btrfs_put_bioc(bioc); in raid56_parity_recover() 2156 btrfs_get_bioc(bioc); in raid56_parity_recover() 2313 struct btrfs_io_context *bioc = rbio->bioc; in finish_parity_scrub() local [all …]
|
A D | raid56.h | 33 int raid56_parity_recover(struct bio *bio, struct btrfs_io_context *bioc, 35 int raid56_parity_write(struct bio *bio, struct btrfs_io_context *bioc, 42 struct btrfs_io_context *bioc, u64 stripe_len, 48 raid56_alloc_missing_rbio(struct bio *bio, struct btrfs_io_context *bioc,
|
A D | volumes.c | 5864 if (bioc->raid_map[i] > bioc->raid_map[i + 1]) { in sort_parity_stripes() 5865 swap(bioc->stripes[i], bioc->stripes[i + 1]); in sort_parity_stripes() 5866 swap(bioc->raid_map[i], bioc->raid_map[i + 1]); in sort_parity_stripes() 5898 return bioc; in alloc_btrfs_io_context() 5909 if (!bioc) in btrfs_put_bioc() 5912 kfree(bioc); in btrfs_put_bioc() 6010 if (!bioc) { in __btrfs_map_block_for_discard() 6532 if (!bioc) { in __btrfs_map_block() 6671 if (atomic_read(&bioc->error) > bioc->max_errors) { in btrfs_end_bio() 6731 if (atomic_read(&bioc->error) > bioc->max_errors) in bioc_error() [all …]
|
A D | scrub.c | 1030 int max_allowed = r->bioc->num_stripes - r->bioc->num_tgtdevs; in scrub_handle_errored_block() 1290 bioc = NULL; in scrub_setup_recheck_block() 1300 btrfs_put_bioc(bioc); in scrub_setup_recheck_block() 1307 btrfs_put_bioc(bioc); in scrub_setup_recheck_block() 1313 recover->bioc = bioc; in scrub_setup_recheck_block() 2214 if (ret || !bioc || !bioc->raid_map) in scrub_missing_raid56_pages() 2253 btrfs_put_bioc(bioc); in scrub_missing_raid56_pages() 2841 if (ret || !bioc || !bioc->raid_map) in scrub_parity_check_and_repair() 2864 btrfs_put_bioc(bioc); in scrub_parity_check_and_repair() 3046 bioc = NULL; in scrub_raid56_parity() [all …]
|
A D | reada.c | 230 struct btrfs_io_context *bioc) in reada_find_zone() argument 278 for (i = 0; i < bioc->num_stripes; ++i) { in reada_find_zone() 280 zone->devs[i] = bioc->stripes[i].dev; in reada_find_zone() 282 zone->ndevs = bioc->num_stripes; in reada_find_zone() 312 struct btrfs_io_context *bioc = NULL; in reada_find_extent() local 348 &length, &bioc, 0); in reada_find_extent() 352 if (bioc->num_stripes > BTRFS_MAX_MIRRORS) { in reada_find_extent() 359 real_stripes = bioc->num_stripes - bioc->num_tgtdevs; in reada_find_extent() 363 dev = bioc->stripes[nzones].dev; in reada_find_extent() 467 btrfs_put_bioc(bioc); in reada_find_extent() [all …]
|
A D | zoned.c | 1638 struct btrfs_io_context *bioc = NULL; in read_zone_info() local 1645 &mapped_length, &bioc); in read_zone_info() 1646 if (ret || !bioc || mapped_length < PAGE_SIZE) { in read_zone_info() 1647 btrfs_put_bioc(bioc); in read_zone_info() 1651 if (bioc->map_type & BTRFS_BLOCK_GROUP_RAID56_MASK) in read_zone_info() 1655 nmirrors = (int)bioc->num_stripes; in read_zone_info() 1657 u64 physical = bioc->stripes[i].physical; in read_zone_info() 1658 struct btrfs_device *dev = bioc->stripes[i].dev; in read_zone_info()
|
A D | volumes.h | 493 void btrfs_get_bioc(struct btrfs_io_context *bioc); 494 void btrfs_put_bioc(struct btrfs_io_context *bioc);
|
A D | extent_io.c | 2311 struct btrfs_io_context *bioc = NULL; in repair_io_failure() local 2338 &map_length, &bioc, 0); in repair_io_failure() 2344 ASSERT(bioc->mirror_num == 1); in repair_io_failure() 2347 &map_length, &bioc, mirror_num); in repair_io_failure() 2353 BUG_ON(mirror_num != bioc->mirror_num); in repair_io_failure() 2356 sector = bioc->stripes[bioc->mirror_num - 1].physical >> 9; in repair_io_failure() 2358 dev = bioc->stripes[bioc->mirror_num - 1].dev; in repair_io_failure() 2359 btrfs_put_bioc(bioc); in repair_io_failure()
|
A D | extent-tree.c | 1316 struct btrfs_io_context *bioc = NULL; in btrfs_discard_extent() local 1330 &num_bytes, &bioc, 0); in btrfs_discard_extent() 1339 stripe = bioc->stripes; in btrfs_discard_extent() 1340 for (i = 0; i < bioc->num_stripes; i++, stripe++) { in btrfs_discard_extent() 1363 btrfs_put_bioc(bioc); in btrfs_discard_extent() 1374 btrfs_put_bioc(bioc); in btrfs_discard_extent()
|
Completed in 67 milliseconds