Home
last modified time | relevance | path

Searched refs:data_disks (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/md/
H A Draid5-ppl.c274 int data_disks = 0; in ppl_log_stripe() local
303 if (!data_disks || dev->sector < data_sector) in ppl_log_stripe()
305 data_disks++; in ppl_log_stripe()
308 BUG_ON(!data_disks); in ppl_log_stripe()
311 io->seq, (unsigned long long)data_sector, data_disks); in ppl_log_stripe()
331 ((data_sector - data_sector_last) * data_disks == in ppl_log_stripe()
343 le32_add_cpu(&e->data_size, data_disks << PAGE_SHIFT); in ppl_log_stripe()
798 int data_disks; in ppl_recover_entry() local
816 data_disks = data_size / pp_size; in ppl_recover_entry()
819 data_disks = conf->raid_disks - conf->max_degraded; in ppl_recover_entry()
[all …]
H A Draid5.c3015 int data_disks = raid_disks - conf->max_degraded; in raid5_compute_sector() local
3029 *dd_idx = sector_div(stripe, data_disks); in raid5_compute_sector()
3037 pd_idx = data_disks; in raid5_compute_sector()
3042 pd_idx = data_disks - sector_div(stripe2, raid_disks); in raid5_compute_sector()
3052 pd_idx = data_disks - sector_div(stripe2, raid_disks); in raid5_compute_sector()
3064 pd_idx = data_disks; in raid5_compute_sector()
3108 pd_idx = data_disks; in raid5_compute_sector()
3109 qd_idx = data_disks + 1; in raid5_compute_sector()
3152 pd_idx = data_disks - sector_div(stripe2, raid_disks-1); in raid5_compute_sector()
3166 pd_idx = data_disks - sector_div(stripe2, raid_disks-1); in raid5_compute_sector()
[all …]