Home
last modified time | relevance | path

Searched refs:num_copies (Results 1 – 4 of 4) sorted by relevance

/linux-6.1.9/fs/btrfs/
Dcheck-integrity.c220 int num_copies; member
611 int num_copies; in btrfsic_process_superblock() local
638 num_copies = btrfs_num_copies(state->fs_info, next_bytenr, in btrfsic_process_superblock()
642 next_bytenr, num_copies); in btrfsic_process_superblock()
644 for (mirror_num = 1; mirror_num <= num_copies; mirror_num++) { in btrfsic_process_superblock()
780 int num_copies; in btrfsic_process_superblock_dev_mirror() local
810 num_copies = btrfs_num_copies(fs_info, next_bytenr, in btrfsic_process_superblock_dev_mirror()
814 next_bytenr, num_copies); in btrfsic_process_superblock_dev_mirror()
815 for (mirror_num = 1; mirror_num <= num_copies; mirror_num++) { in btrfsic_process_superblock_dev_mirror()
920 if (0 == sf->num_copies || sf->mirror_num > sf->num_copies) { in btrfsic_process_metablock()
[all …]
Dextent_io.h272 int num_copies; member
Dextent_io.c655 if (cur_mirror == failrec->num_copies) in next_mirror()
656 return cur_mirror + 1 - failrec->num_copies; in next_mirror()
663 return failrec->num_copies; in prev_mirror()
779 failrec->num_copies = btrfs_num_copies(fs_info, failrec->logical, sectorsize); in btrfs_get_io_failure_record()
780 if (failrec->num_copies == 1) { in btrfs_get_io_failure_record()
788 failrec->logical, failrec->num_copies); in btrfs_get_io_failure_record()
837 failrec->num_copies, failrec->this_mirror, failrec->failed_mirror); in btrfs_repair_one_sector()
Ddisk-io.c265 int num_copies = 0; in btrfs_read_extent_buffer() local
284 num_copies = btrfs_num_copies(fs_info, in btrfs_read_extent_buffer()
286 if (num_copies == 1) in btrfs_read_extent_buffer()
298 if (mirror_num > num_copies) in btrfs_read_extent_buffer()