Searched refs:data_stripes (Results 1 – 3 of 3) sorted by relevance
1429 const int data_stripes = nr_data_stripes(map);1431 last_offset = (physical - map->stripes[num].physical) * data_stripes;1436 for (i = 0; i < data_stripes; i++) { in get_raid56_logic_offset() 1443 stripe_nr = (u32)(*offset >> BTRFS_STRIPE_LEN_SHIFT) / data_stripes; in get_raid56_logic_offset() local 2113 const int data_stripes = nr_data_stripes(map); in should_cancel_scrub() 2114 u64 length = btrfs_stripe_nr_to_offset(data_stripes); in should_cancel_scrub() 2137 for (int i = 0; i < data_stripes; i++) { in scrub_raid56_cached_parity() 2163 const int data_stripes = nr_data_stripes(map); in scrub_raid56_cached_parity() 2193 for (int i = 0; i < data_stripes; i++) { in scrub_raid56_parity_stripe() 2200 data_stripes) >> BTRFS_STRIPE_LEN_SHIF in scrub_raid56_parity_stripe() 2127 const int data_stripes = nr_data_stripes(map); scrub_raid56_cached_parity() local 2177 const int data_stripes = nr_data_stripes(map); scrub_raid56_parity_stripe() local [all...]
5775 int data_stripes; in btrfs_add_chunk_map() 5789 data_stripes = (ctl->num_stripes - ctl->nparity) / ctl->ncopies; in btrfs_alloc_chunk_map() 5797 if (ctl->stripe_size * data_stripes > ctl->max_chunk_size) { in btrfs_alloc_chunk_map() 5804 data_stripes), SZ_16M), in create_chunk() 5813 ctl->chunk_size = ctl->stripe_size * data_stripes; in create_chunk() 5823 int data_stripes; in create_chunk() 5835 data_stripes = (ctl->num_stripes - ctl->nparity) / ctl->ncopies; in create_chunk() 5838 if (ctl->stripe_size * data_stripes > ctl->max_chunk_size) { in create_chunk() 5843 data_stripes = (ctl->num_stripes - ctl->nparity) / ctl->ncopies; in create_chunk() 5844 ASSERT(ctl->stripe_size * data_stripes < in create_chunk() 5603 int data_stripes; decide_stripe_size_regular() local 5651 int data_stripes; decide_stripe_size_zoned() local 6799 int data_stripes = nr_data_stripes(map); map_blocks_raid56_write() local 6829 int data_stripes = nr_data_stripes(map); map_blocks_raid56_read() local 7273 const int data_stripes = calc_data_stripes(map->type, map->num_stripes); btrfs_calc_stripe_length() local 8585 int data_stripes = nr_bioc_data_stripes(bioc); map_raid56_repair_block() local [all...]
1646 unsigned int data_stripes; in rs_set_dev_and_array_sectors() local1652 data_stripes = mddev_data_stripes(rs); in rs_set_dev_and_array_sectors()1655 data_stripes = rs_data_stripes(rs); in rs_set_dev_and_array_sectors()1669 if (sector_div(dev_sectors, data_stripes)) in rs_set_dev_and_array_sectors()1672 array_sectors = (data_stripes + delta_disks) * (dev_sectors - _get_reshape_sectors(rs)); in rs_set_dev_and_array_sectors()1676 } else if (sector_div(dev_sectors, data_stripes)) in rs_set_dev_and_array_sectors()1681 array_sectors = (data_stripes + delta_disks) * (dev_sectors - _get_reshape_sectors(rs)); in rs_set_dev_and_array_sectors()