Searched refs:data_stripes (Results 1 – 2 of 2) sorted by relevance
1621 unsigned int data_stripes; in rs_set_dev_and_array_sectors() local1628 data_stripes = mddev_data_stripes(rs); in rs_set_dev_and_array_sectors()1631 data_stripes = rs_data_stripes(rs); in rs_set_dev_and_array_sectors()1645 if (sector_div(dev_sectors, data_stripes)) in rs_set_dev_and_array_sectors()1648 array_sectors = (data_stripes + delta_disks) * dev_sectors; in rs_set_dev_and_array_sectors()1652 } else if (sector_div(dev_sectors, data_stripes)) in rs_set_dev_and_array_sectors()1657 array_sectors = (data_stripes + delta_disks) * dev_sectors; in rs_set_dev_and_array_sectors()
4590 int data_stripes; /* number of stripes that count for in __btrfs_alloc_chunk() local4753 data_stripes = num_stripes / ncopies; in __btrfs_alloc_chunk()4756 data_stripes = num_stripes - 1; in __btrfs_alloc_chunk()4759 data_stripes = num_stripes - 2; in __btrfs_alloc_chunk()4766 if (stripe_size * data_stripes > max_chunk_size) { in __btrfs_alloc_chunk()4767 stripe_size = div_u64(max_chunk_size, data_stripes); in __btrfs_alloc_chunk()4804 num_bytes = stripe_size * data_stripes; in __btrfs_alloc_chunk()7356 int data_stripes; in calc_stripe_length() local7360 data_stripes = num_stripes - 1; in calc_stripe_length()7363 data_stripes = num_stripes - 2; in calc_stripe_length()[all …]