Lines Matching refs:ncopies
51 .ncopies = 2,
64 .ncopies = 2,
77 .ncopies = 3,
90 .ncopies = 4,
103 .ncopies = 2,
116 .ncopies = 1,
129 .ncopies = 1,
142 .ncopies = 1,
155 .ncopies = 1,
3689 const int ncopies = btrfs_raid_array[index].ncopies; in calc_data_stripes() local
3692 return (num_stripes - nparity) / ncopies; in calc_data_stripes()
4322 if (btrfs_raid_array[i].ncopies >= 2 || in btrfs_balance()
5092 int ncopies; member
5131 int min_data_stripes = (min_num_stripes - ctl->nparity) / ctl->ncopies; in init_alloc_chunk_ctl_policy_zoned()
5169 ctl->ncopies = btrfs_raid_array[index].ncopies; in init_alloc_chunk_ctl()
5280 data_stripes = (ctl->num_stripes - ctl->nparity) / ctl->ncopies; in decide_stripe_size_regular()
5324 data_stripes = (ctl->num_stripes - ctl->nparity) / ctl->ncopies; in decide_stripe_size_zoned()
5328 ctl->ndevs = div_u64(div_u64(ctl->max_chunk_size * ctl->ncopies, in decide_stripe_size_zoned()
5332 data_stripes = (ctl->num_stripes - ctl->nparity) / ctl->ncopies; in decide_stripe_size_zoned()
5766 ret = btrfs_raid_array[index].ncopies; in btrfs_num_copies()
7698 return btrfs_raid_array[index].ncopies; in btrfs_bg_type_to_factor()