Home
last modified time | relevance | path

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

/fs/btrfs/
Dcheck-integrity.c153 unsigned int mirror_num; /* large enough to hold member
240 int mirror_num; member
331 int mirror_num);
379 int mirror_num,
415 b->mirror_num = 0; in btrfsic_block_init()
693 int mirror_num; in btrfsic_process_superblock() local
726 for (mirror_num = 1; mirror_num <= num_copies; mirror_num++) { in btrfsic_process_superblock()
734 mirror_num); in btrfsic_process_superblock()
737 next_bytenr, mirror_num); in btrfsic_process_superblock()
833 superblock_tmp->mirror_num = 1 + superblock_mirror_num; in btrfsic_process_superblock_dev_mirror()
[all …]
Dvolumes.h277 unsigned int mirror_num; member
313 int mirror_num; member
380 struct btrfs_bio **bbio_ret, int mirror_num);
383 struct btrfs_bio **bbio_ret, int mirror_num,
395 int mirror_num, int async_submit);
457 u64 logical, u64 len, int mirror_num);
Dscrub.c84 unsigned int mirror_num:8; member
214 int mirror_num; member
228 int mirror_num; member
275 u64 gen, int mirror_num, u8 *csum, int force,
301 int mirror_num, u64 physical_for_dev_replace);
739 fixup->mirror_num); in scrub_fixup_readpage()
760 fixup->mirror_num); in scrub_fixup_readpage()
915 BUG_ON(sblock_to_check->pagev[0]->mirror_num < 1); in scrub_handle_errored_block()
916 failed_mirror_index = sblock_to_check->pagev[0]->mirror_num - 1; in scrub_handle_errored_block()
1060 fixup_nodatasum->mirror_num = failed_mirror_index + 1; in scrub_handle_errored_block()
[all …]
Dcompression.c72 int mirror_num; member
130 cb->mirror_num); in check_compressed_csum()
353 cb->mirror_num = 0; in btrfs_submit_compressed_write()
572 int mirror_num, unsigned long bio_flags) in btrfs_submit_compressed_read() argument
613 cb->mirror_num = mirror_num; in btrfs_submit_compressed_read()
699 ret = btrfs_map_bio(root, comp_bio, mirror_num, 0); in btrfs_submit_compressed_read()
729 ret = btrfs_map_bio(root, comp_bio, mirror_num, 0); in btrfs_submit_compressed_read()
Dextent_io.h90 int mirror_num, unsigned long bio_flags,
233 get_extent_t *get_extent, int mirror_num);
385 get_extent_t *get_extent, int mirror_num);
451 int mirror_num);
456 int mirror_num);
Dvolumes.c5216 u64 logical, u64 len, int mirror_num) in btrfs_is_parity_mirror() argument
5343 int mirror_num, int need_raid_map) in __btrfs_map_block() argument
5462 if (dev_replace_is_ongoing && mirror_num == map->num_stripes + 1 && in __btrfs_map_block()
5493 if (mirror_num > tmp_num_stripes) { in __btrfs_map_block()
5535 mirror_num = index_srcdev + 1; in __btrfs_map_block()
5538 } else if (mirror_num > map->num_stripes) { in __btrfs_map_block()
5539 mirror_num = 0; in __btrfs_map_block()
5558 mirror_num = 1; in __btrfs_map_block()
5563 else if (mirror_num) in __btrfs_map_block()
5564 stripe_index = mirror_num - 1; in __btrfs_map_block()
[all …]
Dextent_io.c2002 struct page *page, unsigned int pg_offset, int mirror_num) in repair_io_failure() argument
2014 BUG_ON(!mirror_num); in repair_io_failure()
2017 if (btrfs_is_parity_mirror(map_tree, logical, length, mirror_num)) in repair_io_failure()
2033 &map_length, &bbio, mirror_num); in repair_io_failure()
2039 BUG_ON(mirror_num != bbio->mirror_num); in repair_io_failure()
2040 sector = bbio->stripes[mirror_num-1].physical >> 9; in repair_io_failure()
2042 dev = bbio->stripes[mirror_num-1].dev; in repair_io_failure()
2071 int mirror_num) in repair_eb_io_failure() argument
2085 start - page_offset(p), mirror_num); in repair_eb_io_failure()
2553 io_bio->mirror_num); in end_bio_extent_readpage()
[all …]
Ddisk-io.h51 int mirror_num, struct extent_buffer **eb);
128 struct bio *bio, int mirror_num,
Ddisk-io.c127 int mirror_num; member
451 int mirror_num = 0; in btree_read_extent_buffer_pages() local
458 btree_get_extent, mirror_num); in btree_read_extent_buffer_pages()
485 mirror_num++; in btree_read_extent_buffer_pages()
486 if (mirror_num == failed_mirror) in btree_read_extent_buffer_pages()
487 mirror_num++; in btree_read_extent_buffer_pages()
489 if (mirror_num > num_copies) in btree_read_extent_buffer_pages()
875 async->mirror_num, async->bio_flags, in run_one_async_start()
907 async->submit_bio_done(async->inode, async->bio, async->mirror_num, in run_one_async_done()
920 struct bio *bio, int mirror_num, in btrfs_wq_submit_bio() argument
[all …]
Draid56.h47 int mirror_num, int generic_io);
Dcompression.h47 int mirror_num, unsigned long bio_flags);
Dreada.c656 int mirror_num = 0; in reada_start_machine_dev() local
710 mirror_num = i + 1; in reada_start_machine_dev()
718 mirror_num, &eb); in reada_start_machine_dev()
Dinode.c1890 int mirror_num, unsigned long bio_flags, in __btrfs_submit_bio_start() argument
1910 int mirror_num, unsigned long bio_flags, in __btrfs_submit_bio_done() argument
1916 ret = btrfs_map_bio(root, bio, mirror_num, 1); in __btrfs_submit_bio_done()
1929 int mirror_num, unsigned long bio_flags, in btrfs_submit_bio_hook() argument
1950 mirror_num, in btrfs_submit_bio_hook()
1965 inode, bio, mirror_num, in btrfs_submit_bio_hook()
1977 ret = btrfs_map_bio(root, bio, mirror_num, 0); in btrfs_submit_bio_hook()
7896 int mirror_num) in submit_dio_repair_bio() argument
7910 ret = btrfs_map_bio(root, bio, mirror_num, 0); in submit_dio_repair_bio()
8065 io_bio->mirror_num, in __btrfs_correct_data_nocsum()
[all …]
Draid56.c2128 int mirror_num, int generic_io) in raid56_parity_recover() argument
2167 if (mirror_num == 3) in raid56_parity_recover()