Searched refs:data_stripes (Results 1 – 3 of 3) sorted by relevance
1289 const int data_stripes = nr_data_stripes(map); in get_raid56_logic_offset() local1291 last_offset = (physical - map->stripes[num].physical) * data_stripes; in get_raid56_logic_offset()1296 for (i = 0; i < data_stripes; i++) { in get_raid56_logic_offset()1303 stripe_nr = (u32)(*offset >> BTRFS_STRIPE_LEN_SHIFT) / data_stripes; in get_raid56_logic_offset()1841 const int data_stripes = nr_data_stripes(map); in scrub_raid56_parity_stripe() local1843 u64 length = btrfs_stripe_nr_to_offset(data_stripes); in scrub_raid56_parity_stripe()1858 for (int i = 0; i < data_stripes; i++) { in scrub_raid56_parity_stripe()1865 data_stripes) >> BTRFS_STRIPE_LEN_SHIFT; in scrub_raid56_parity_stripe()1892 for (int i = 0; i < data_stripes; i++) { in scrub_raid56_parity_stripe()1904 for (int i = 0; i < data_stripes; i++) { in scrub_raid56_parity_stripe()[all …]
5265 int data_stripes; in decide_stripe_size_regular() local5279 data_stripes = (ctl->num_stripes - ctl->nparity) / ctl->ncopies; in decide_stripe_size_regular()5287 if (ctl->stripe_size * data_stripes > ctl->max_chunk_size) { in decide_stripe_size_regular()5294 data_stripes), SZ_16M), in decide_stripe_size_regular()5303 ctl->chunk_size = ctl->stripe_size * data_stripes; in decide_stripe_size_regular()5313 int data_stripes; in decide_stripe_size_zoned() local5323 data_stripes = (ctl->num_stripes - ctl->nparity) / ctl->ncopies; in decide_stripe_size_zoned()5326 if (ctl->stripe_size * data_stripes > ctl->max_chunk_size) { in decide_stripe_size_zoned()5331 data_stripes = (ctl->num_stripes - ctl->nparity) / ctl->ncopies; in decide_stripe_size_zoned()5332 ASSERT(ctl->stripe_size * data_stripes <= ctl->max_chunk_size); in decide_stripe_size_zoned()[all …]
1627 unsigned int data_stripes; in rs_set_dev_and_array_sectors() local1633 data_stripes = mddev_data_stripes(rs); in rs_set_dev_and_array_sectors()1636 data_stripes = rs_data_stripes(rs); in rs_set_dev_and_array_sectors()1650 if (sector_div(dev_sectors, data_stripes)) in rs_set_dev_and_array_sectors()1653 array_sectors = (data_stripes + delta_disks) * dev_sectors; in rs_set_dev_and_array_sectors()1657 } else if (sector_div(dev_sectors, data_stripes)) in rs_set_dev_and_array_sectors()1662 array_sectors = (data_stripes + delta_disks) * dev_sectors; in rs_set_dev_and_array_sectors()