Home
last modified time | relevance | path

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

/Linux-v6.1/fs/btrfs/
Dcheck-integrity.c138 unsigned int mirror_num; /* large enough to hold member
221 int mirror_num; member
269 int mirror_num);
307 int mirror_num,
342 b->mirror_num = 0; in btrfsic_block_init()
612 int mirror_num; in btrfsic_process_superblock() local
644 for (mirror_num = 1; mirror_num <= num_copies; mirror_num++) { in btrfsic_process_superblock()
652 mirror_num); in btrfsic_process_superblock()
655 next_bytenr, mirror_num); in btrfsic_process_superblock()
753 superblock_tmp->mirror_num = 1 + superblock_mirror_num; in btrfsic_process_superblock_dev_mirror()
[all …]
Ddisk-io.h52 struct btrfs_super_block *sb, int mirror_num);
88 void btrfs_submit_metadata_bio(struct inode *inode, struct bio *bio, int mirror_num);
122 bool btrfs_wq_submit_bio(struct inode *inode, struct bio *bio, int mirror_num,
126 int mirror_num);
Dbtrfs_inode.h415 u64 logical_start, u8 *csum, u8 *csum_expected, int mirror_num) in btrfs_print_data_csum_error() argument
428 mirror_num); in btrfs_print_data_csum_error()
436 mirror_num); in btrfs_print_data_csum_error()
Dextent_io.h71 int mirror_num,
178 int mirror_num);
251 int btrfs_repair_eb_io_failure(const struct extent_buffer *eb, int mirror_num);
Dvolumes.h397 unsigned int mirror_num; member
505 int mirror_num; member
610 struct btrfs_io_context **bioc_ret, int mirror_num);
625 void btrfs_submit_bio(struct btrfs_fs_info *fs_info, struct bio *bio, int mirror_num);
Dextent_io.c94 int mirror_num; member
117 int mirror_num; in submit_one_bio() local
125 mirror_num = bio_ctrl->mirror_num; in submit_one_bio()
133 btrfs_submit_metadata_bio(inode, bio, mirror_num); in submit_one_bio()
135 btrfs_submit_data_write_bio(inode, bio, mirror_num); in submit_one_bio()
137 btrfs_submit_data_read_bio(inode, bio, mirror_num, in submit_one_bio()
542 unsigned int pg_offset, int mirror_num) in repair_io_failure() argument
553 BUG_ON(!mirror_num); in repair_io_failure()
577 ASSERT(bioc->mirror_num == 1); in repair_io_failure()
580 &map_length, &bioc, mirror_num); in repair_io_failure()
[all …]
Dvolumes.c6096 u64 srcdev_devid, int *mirror_num, in get_extra_mirror_from_replace() argument
6115 if (*mirror_num > num_stripes) { in get_extra_mirror_from_replace()
6153 *mirror_num = index_srcdev + 1; in get_extra_mirror_from_replace()
6388 int mirror_num = (mirror_num_ret ? *mirror_num_ret : 0); in __btrfs_map_block() local
6429 if (dev_replace_is_ongoing && mirror_num == map->num_stripes + 1 && in __btrfs_map_block()
6433 &mirror_num, in __btrfs_map_block()
6439 } else if (mirror_num > map->num_stripes) { in __btrfs_map_block()
6440 mirror_num = 0; in __btrfs_map_block()
6449 mirror_num = 1; in __btrfs_map_block()
6453 else if (mirror_num) in __btrfs_map_block()
[all …]
Dscrub.c109 int mirror_num; member
259 int mirror_num) in alloc_scrub_block() argument
272 sblock->mirror_num = mirror_num; in alloc_scrub_block()
407 u64 gen, int mirror_num, u8 *csum,
1024 ASSERT(sblock_to_check->mirror_num); in scrub_handle_errored_block()
1025 failed_mirror_index = sblock_to_check->mirror_num - 1; in scrub_handle_errored_block()
1225 sblock_other->mirror_num = 1 + mirror_index; in scrub_handle_errored_block()
1571 raid56_parity_recover(bio, sector->recover->bioc, sector->sblock->mirror_num); in scrub_submit_raid56_bio_wait()
2403 u64 gen, int mirror_num, u8 *csum, in scrub_sectors() argument
2411 physical_for_dev_replace, mirror_num); in scrub_sectors()
[all …]
Draid56.h167 int mirror_num);
Ddisk-io.c81 int mirror_num; member
266 int mirror_num = 0; in btrfs_read_extent_buffer() local
272 ret = read_extent_buffer_pages(eb, WAIT_COMPLETE, mirror_num); in btrfs_read_extent_buffer()
294 mirror_num++; in btrfs_read_extent_buffer()
295 if (mirror_num == failed_mirror) in btrfs_read_extent_buffer()
296 mirror_num++; in btrfs_read_extent_buffer()
298 if (mirror_num > num_copies) in btrfs_read_extent_buffer()
664 btrfs_submit_bio(btrfs_sb(inode->i_sb), async->bio, async->mirror_num); in run_one_async_done()
682 bool btrfs_wq_submit_bio(struct inode *inode, struct bio *bio, int mirror_num, in btrfs_wq_submit_bio() argument
695 async->mirror_num = mirror_num; in btrfs_wq_submit_bio()
[all …]
Dcompression.h102 int mirror_num);
Dcompression.c661 int mirror_num) in btrfs_submit_compressed_read() argument
807 btrfs_submit_bio(fs_info, comp_bio, mirror_num); in btrfs_submit_compressed_read()
Draid56.c2197 int mirror_num) in raid56_parity_recover() argument
2227 if (mirror_num > 2) { in raid56_parity_recover()
2233 rbio->failb = rbio->real_stripes - (mirror_num - 1); in raid56_parity_recover()
Dinode.c2697 void btrfs_submit_data_write_bio(struct inode *inode, struct bio *bio, int mirror_num) in btrfs_submit_data_write_bio() argument
2724 btrfs_wq_submit_bio(inode, bio, mirror_num, 0, in btrfs_submit_data_write_bio()
2734 btrfs_submit_bio(fs_info, bio, mirror_num); in btrfs_submit_data_write_bio()
2738 int mirror_num, enum btrfs_compression_type compress_type) in btrfs_submit_data_read_bio() argument
2748 btrfs_submit_compressed_read(inode, bio, mirror_num); in btrfs_submit_data_read_bio()
2765 btrfs_submit_bio(fs_info, bio, mirror_num); in btrfs_submit_data_read_bio()
3481 csum, csum_expected, bbio->mirror_num); in btrfs_check_data_csum()
7828 int mirror_num, in submit_dio_repair_bio() argument
7837 btrfs_submit_bio(fs_info, bio, mirror_num); in submit_dio_repair_bio()
10230 struct bio *bio, int mirror_num) in submit_encoded_read_bio() argument
[all …]
Dctree.h3348 void btrfs_submit_data_write_bio(struct inode *inode, struct bio *bio, int mirror_num);
3350 int mirror_num, enum btrfs_compression_type compress_type);