/linux/fs/btrfs/ |
H A D | bio.c | 174 int mirror = repair_bbio->mirror_num; in btrfs_end_repair_bio() 188 if (mirror == fbio->bbio->mirror_num) { in btrfs_end_repair_bio() 204 } while (mirror != fbio->bbio->mirror_num); in btrfs_end_repair_bio() 261 mirror = next_repair_mirror(fbio, failed_bbio->mirror_num); in repair_one_sector() 373 bbio->mirror_num = bioc->mirror_num; in btrfs_raid56_end_io() 486 struct btrfs_io_stripe *smap, int mirror_num) in btrfs_submit_bio() argument 490 btrfs_bio(bio)->mirror_num = mirror_num; in btrfs_submit_bio() 502 raid56_parity_recover(bio, bioc, mirror_num); in btrfs_submit_bio() 530 int mirror_num; member 586 btrfs_submit_bio(bio, async->bioc, &async->smap, async->mirror_num); in run_one_async_done() [all …]
|
H A D | bio.h | 75 unsigned int mirror_num; member 110 void btrfs_submit_bbio(struct btrfs_bio *bbio, int mirror_num); 111 void btrfs_submit_repair_write(struct btrfs_bio *bbio, int mirror_num, bool dev_replace); 114 unsigned int folio_offset, int mirror_num);
|
H A D | scrub.c | 119 u16 mirror_num; member 623 logical, stripe->mirror_num, in scrub_verify_one_metadata() 633 logical, stripe->mirror_num, in scrub_verify_one_metadata() 643 logical, stripe->mirror_num, in scrub_verify_one_metadata() 668 logical, stripe->mirror_num, in scrub_verify_one_metadata() 679 logical, stripe->mirror_num, in scrub_verify_one_metadata() 825 ASSERT(stripe->mirror_num >= 1); in scrub_stripe_submit_repair_read() 892 int stripe_index = stripe->mirror_num - 1; in scrub_stripe_report_errors() 896 ASSERT(stripe->mirror_num >= 1); in scrub_stripe_report_errors() 946 stripe->logical, stripe->mirror_num); in scrub_stripe_report_errors() [all …]
|
H A D | raid56.h | 195 int mirror_num);
|
H A D | volumes.c | 45 int mirror_num; member 6365 enum btrfs_map_op op, int mirror_num) in is_single_device_io() argument 6376 if ((map->type & BTRFS_BLOCK_GROUP_RAID56_MASK) && mirror_num > 1) in is_single_device_io() 6388 io_geom->mirror_num = 1; in map_blocks_raid0() 6401 if (io_geom->mirror_num) { in map_blocks_raid1() 6402 io_geom->stripe_index = io_geom->mirror_num - 1; in map_blocks_raid1() 6408 io_geom->mirror_num = io_geom->stripe_index + 1; in map_blocks_raid1() 6419 if (io_geom->mirror_num) { in map_blocks_dup() 6420 io_geom->stripe_index = io_geom->mirror_num - 1; in map_blocks_dup() 6424 io_geom->mirror_num = 1; in map_blocks_dup() [all …]
|
H A D | volumes.h | 506 u16 mirror_num; member 686 u32 length, int mirror_num);
|
H A D | disk-io.c | 182 int mirror_num) in btrfs_repair_eb_io_failure() argument 200 mirror_num); in btrfs_repair_eb_io_failure() 222 int mirror_num = 0; in btrfs_read_extent_buffer() local 229 ret = read_extent_buffer_pages(eb, WAIT_COMPLETE, mirror_num, check); in btrfs_read_extent_buffer() 243 mirror_num++; in btrfs_read_extent_buffer() 244 if (mirror_num == failed_mirror) in btrfs_read_extent_buffer() 245 mirror_num++; in btrfs_read_extent_buffer() 247 if (mirror_num > num_copies) in btrfs_read_extent_buffer() 2341 const struct btrfs_super_block *sb, int mirror_num) in btrfs_validate_super() argument 2491 if (mirror_num >= 0 && in btrfs_validate_super() [all …]
|
H A D | extent_io.h | 268 int read_extent_buffer_pages(struct extent_buffer *eb, int wait, int mirror_num,
|
H A D | inode.c | 94 int mirror_num; member 173 warn->logical, warn->mirror_num, root, inum, offset); in data_reloc_print_warning_inode() 187 warn->logical, warn->mirror_num, root, inum, offset, in data_reloc_print_warning_inode() 199 warn->logical, warn->mirror_num, root, inum, offset, ret); in data_reloc_print_warning_inode() 213 int mirror_num) in print_data_reloc_error() argument 237 mirror_num); in print_data_reloc_error() 248 mirror_num); in print_data_reloc_error() 279 logical, mirror_num, in print_data_reloc_error() 296 reloc_warn.mirror_num = mirror_num; in print_data_reloc_error() 305 u64 logical_start, u8 *csum, u8 *csum_expected, int mirror_num) in btrfs_print_data_csum_error() argument [all …]
|
H A D | extent_io.c | 534 bbio->mirror_num); in end_bbio_data_read() 3468 eb->read_mirror = bbio->mirror_num; in end_bbio_meta_read() 3500 int read_extent_buffer_pages(struct extent_buffer *eb, int wait, int mirror_num, in read_extent_buffer_pages() argument 3558 btrfs_submit_bbio(bbio, mirror_num); in read_extent_buffer_pages()
|