Home
last modified time | relevance | path

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

/fs/btrfs/
Dcheck-integrity.c150 unsigned int mirror_num; /* large enough to hold member
237 int mirror_num; member
328 int mirror_num);
379 int mirror_num,
415 b->mirror_num = 0; in btrfsic_block_init()
705 int mirror_num; in btrfsic_process_superblock() local
738 for (mirror_num = 1; mirror_num <= num_copies; mirror_num++) { in btrfsic_process_superblock()
746 mirror_num); in btrfsic_process_superblock()
751 next_bytenr, mirror_num); in btrfsic_process_superblock()
848 superblock_tmp->mirror_num = 1 + superblock_mirror_num; in btrfsic_process_superblock_dev_mirror()
[all …]
Dscrub.c77 unsigned int mirror_num:8; member
157 int mirror_num; member
171 int mirror_num; member
225 u64 gen, int mirror_num, u8 *csum, int force,
251 int mirror_num, u64 physical_for_dev_replace);
672 fixup->mirror_num); in scrub_fixup_readpage()
693 fixup->mirror_num); in scrub_fixup_readpage()
838 BUG_ON(sblock_to_check->pagev[0]->mirror_num < 1); in scrub_handle_errored_block()
839 failed_mirror_index = sblock_to_check->pagev[0]->mirror_num - 1; in scrub_handle_errored_block()
985 fixup_nodatasum->mirror_num = failed_mirror_index + 1; in scrub_handle_errored_block()
[all …]
Dextent_io.h64 struct bio *bio, int mirror_num,
196 get_extent_t *get_extent, int mirror_num);
198 get_extent_t *get_extent, int mirror_num);
276 get_extent_t *get_extent, int mirror_num);
336 int mirror_num);
341 int mirror_num);
Dvolumes.h271 unsigned int mirror_num; member
307 int mirror_num; member
395 struct btrfs_bio **bbio_ret, int mirror_num);
406 int mirror_num, int async_submit);
459 u64 logical, u64 len, int mirror_num);
Dcompression.c72 int mirror_num; member
133 cb->mirror_num); in check_compressed_csum()
350 cb->mirror_num = 0; in btrfs_submit_compressed_write()
562 int mirror_num, unsigned long bio_flags) in btrfs_submit_compressed_read() argument
603 cb->mirror_num = mirror_num; in btrfs_submit_compressed_read()
693 mirror_num, 0); in btrfs_submit_compressed_read()
720 ret = btrfs_map_bio(root, READ, comp_bio, mirror_num, 0); in btrfs_submit_compressed_read()
Dextent_io.c1999 struct page *page, unsigned int pg_offset, int mirror_num) in repair_io_failure() argument
2011 BUG_ON(!mirror_num); in repair_io_failure()
2014 if (btrfs_is_parity_mirror(map_tree, logical, length, mirror_num)) in repair_io_failure()
2024 &map_length, &bbio, mirror_num); in repair_io_failure()
2029 BUG_ON(mirror_num != bbio->mirror_num); in repair_io_failure()
2030 sector = bbio->stripes[mirror_num-1].physical >> 9; in repair_io_failure()
2032 dev = bbio->stripes[mirror_num-1].dev; in repair_io_failure()
2057 int mirror_num) in repair_eb_io_failure() argument
2071 start - page_offset(p), mirror_num); in repair_eb_io_failure()
2543 io_bio->mirror_num); in end_bio_extent_readpage()
[all …]
Ddisk-io.h51 int mirror_num, struct extent_buffer **eb);
124 int rw, struct bio *bio, int mirror_num,
Dvolumes.c4818 u64 logical, u64 len, int mirror_num) in btrfs_is_parity_mirror() argument
4908 int mirror_num, u64 **raid_map_ret) in __btrfs_map_block() argument
5018 if (dev_replace_is_ongoing && mirror_num == map->num_stripes + 1 && in __btrfs_map_block()
5049 if (mirror_num > tmp_num_stripes) { in __btrfs_map_block()
5085 mirror_num = index_srcdev + 1; in __btrfs_map_block()
5096 } else if (mirror_num > map->num_stripes) { in __btrfs_map_block()
5097 mirror_num = 0; in __btrfs_map_block()
5114 mirror_num = 1; in __btrfs_map_block()
5118 else if (mirror_num) in __btrfs_map_block()
5119 stripe_index = mirror_num - 1; in __btrfs_map_block()
[all …]
Ddisk-io.c122 int mirror_num; member
449 int mirror_num = 0; in btree_read_extent_buffer_pages() local
457 btree_get_extent, mirror_num); in btree_read_extent_buffer_pages()
484 mirror_num++; in btree_read_extent_buffer_pages()
485 if (mirror_num == failed_mirror) in btree_read_extent_buffer_pages()
486 mirror_num++; in btree_read_extent_buffer_pages()
488 if (mirror_num > num_copies) in btree_read_extent_buffer_pages()
791 async->mirror_num, async->bio_flags, in run_one_async_start()
820 async->mirror_num, async->bio_flags, in run_one_async_done()
833 int rw, struct bio *bio, int mirror_num, in btrfs_wq_submit_bio() argument
[all …]
Draid56.h44 u64 stripe_len, int mirror_num);
Dcompression.h47 int mirror_num, unsigned long bio_flags);
Dreada.c660 int mirror_num = 0; in reada_start_machine_dev() local
707 mirror_num = i + 1; in reada_start_machine_dev()
728 mirror_num, &eb); in reada_start_machine_dev()
Dinode.c1723 struct bio *bio, int mirror_num, in __btrfs_submit_bio_start() argument
1744 int mirror_num, unsigned long bio_flags, in __btrfs_submit_bio_done() argument
1750 ret = btrfs_map_bio(root, rw, bio, mirror_num, 1); in __btrfs_submit_bio_done()
1761 int mirror_num, unsigned long bio_flags, in btrfs_submit_bio_hook() argument
1782 mirror_num, in btrfs_submit_bio_hook()
1797 inode, rw, bio, mirror_num, in btrfs_submit_bio_hook()
1809 ret = btrfs_map_bio(root, rw, bio, mirror_num, 0); in btrfs_submit_bio_hook()
7286 int rw, int mirror_num) in submit_dio_repair_bio() argument
7300 ret = btrfs_map_bio(root, rw, bio, mirror_num, 0); in submit_dio_repair_bio()
7436 io_bio->mirror_num, in __btrfs_correct_data_nocsum()
[all …]
Draid56.c2037 u64 stripe_len, int mirror_num) in raid56_parity_recover() argument
2063 if (mirror_num == 3) in raid56_parity_recover()