Searched refs:data_disks (Results 1 – 2 of 2) sorted by relevance
549 unsigned int data_disks, unsigned int * dd_idx, in raid5_compute_sector() argument569 stripe = chunk_number / data_disks; in raid5_compute_sector()574 *dd_idx = chunk_number % data_disks; in raid5_compute_sector()580 *pd_idx = data_disks; in raid5_compute_sector()583 *pd_idx = data_disks - stripe % raid_disks; in raid5_compute_sector()593 *pd_idx = data_disks - stripe % raid_disks; in raid5_compute_sector()615 int raid_disks = conf->raid_disks, data_disks = raid_disks - 1;639 chunk_number = stripe * data_disks + i;643 check = raid5_compute_sector (r_sector, raid_disks, data_disks, &dummy1, &dummy2, conf);1207 const unsigned int data_disks = raid_disks - 1; in raid5_make_request() local[all …]
1546 int data_disks = 0, persistent; in device_size_calculation() local1577 data_disks = 1; in device_size_calculation()1580 data_disks = 1; in device_size_calculation()1583 data_disks = 1; in device_size_calculation()1587 data_disks = 1; in device_size_calculation()1591 data_disks = sb->raid_disks; in device_size_calculation()1594 data_disks = 1; in device_size_calculation()1598 data_disks = sb->raid_disks-1; in device_size_calculation()1605 md_size[mdidx(mddev)] = sb->size * data_disks; in device_size_calculation()1609 readahead = (mddev->sb->chunk_size>>PAGE_SHIFT) * 4 * data_disks; in device_size_calculation()[all …]