Searched refs:data_stripes (Results 1 – 3 of 3) sorted by relevance
1298 const int data_stripes = nr_data_stripes(map); in get_raid56_logic_offset() local1300 last_offset = (physical - map->stripes[num].physical) * data_stripes; in get_raid56_logic_offset()1305 for (i = 0; i < data_stripes; i++) { in get_raid56_logic_offset()1312 stripe_nr = (u32)(*offset >> BTRFS_STRIPE_LEN_SHIFT) / data_stripes; in get_raid56_logic_offset()1949 const int data_stripes = nr_data_stripes(map); in scrub_raid56_parity_stripe() local1951 u64 length = btrfs_stripe_nr_to_offset(data_stripes); in scrub_raid56_parity_stripe()1966 for (int i = 0; i < data_stripes; i++) { in scrub_raid56_parity_stripe()1973 data_stripes) >> BTRFS_STRIPE_LEN_SHIFT; in scrub_raid56_parity_stripe()2000 for (int i = 0; i < data_stripes; i++) { in scrub_raid56_parity_stripe()2012 for (int i = 0; i < data_stripes; i++) { in scrub_raid56_parity_stripe()[all …]
5253 int data_stripes; in decide_stripe_size_regular() local5267 data_stripes = (ctl->num_stripes - ctl->nparity) / ctl->ncopies; in decide_stripe_size_regular()5275 if (ctl->stripe_size * data_stripes > ctl->max_chunk_size) { in decide_stripe_size_regular()5282 data_stripes), SZ_16M), in decide_stripe_size_regular()5291 ctl->chunk_size = ctl->stripe_size * data_stripes; in decide_stripe_size_regular()5301 int data_stripes; in decide_stripe_size_zoned() local5311 data_stripes = (ctl->num_stripes - ctl->nparity) / ctl->ncopies; in decide_stripe_size_zoned()5314 if (ctl->stripe_size * data_stripes > ctl->max_chunk_size) { in decide_stripe_size_zoned()5319 data_stripes = (ctl->num_stripes - ctl->nparity) / ctl->ncopies; in decide_stripe_size_zoned()5320 ASSERT(ctl->stripe_size * data_stripes <= ctl->max_chunk_size); in decide_stripe_size_zoned()[all …]
1650 unsigned int data_stripes; in rs_set_dev_and_array_sectors() local1656 data_stripes = mddev_data_stripes(rs); in rs_set_dev_and_array_sectors()1659 data_stripes = rs_data_stripes(rs); in rs_set_dev_and_array_sectors()1673 if (sector_div(dev_sectors, data_stripes)) in rs_set_dev_and_array_sectors()1676 array_sectors = (data_stripes + delta_disks) * (dev_sectors - _get_reshape_sectors(rs)); in rs_set_dev_and_array_sectors()1680 } else if (sector_div(dev_sectors, data_stripes)) in rs_set_dev_and_array_sectors()1685 array_sectors = (data_stripes + delta_disks) * (dev_sectors - _get_reshape_sectors(rs)); in rs_set_dev_and_array_sectors()