Lines Matching refs:far_set_size
597 last_far_set_start = (geo->raid_disks / geo->far_set_size) - 1; in __raid10_find_phys()
598 last_far_set_start *= geo->far_set_size; in __raid10_find_phys()
600 last_far_set_size = geo->far_set_size; in __raid10_find_phys()
601 last_far_set_size += (geo->raid_disks % geo->far_set_size); in __raid10_find_phys()
625 set = d / geo->far_set_size; in __raid10_find_phys()
628 if ((geo->raid_disks % geo->far_set_size) && in __raid10_find_phys()
634 d %= geo->far_set_size; in __raid10_find_phys()
635 d += geo->far_set_size * set; in __raid10_find_phys()
672 int far_set_start = (dev / geo->far_set_size) * geo->far_set_size; in raid10_find_virt()
673 int far_set_size = geo->far_set_size; in raid10_find_virt() local
676 if (geo->raid_disks % geo->far_set_size) { in raid10_find_virt()
677 last_far_set_start = (geo->raid_disks / geo->far_set_size) - 1; in raid10_find_virt()
678 last_far_set_start *= geo->far_set_size; in raid10_find_virt()
681 far_set_size = geo->far_set_size; in raid10_find_virt()
682 far_set_size += (geo->raid_disks % geo->far_set_size); in raid10_find_virt()
694 dev += far_set_size; in raid10_find_virt()
699 dev += far_set_size - geo->near_copies; in raid10_find_virt()
1951 if (conf->geo.far_set_size != conf->geo.raid_disks) in raid10_status()
1952 seq_printf(seq, " %d devices per set", conf->geo.far_set_size); in raid10_status()
4017 geo->far_set_size = disks; in setup_geo()
4021 geo->far_set_size = disks/fc; in setup_geo()
4022 WARN(geo->far_set_size < fc, in setup_geo()
4026 geo->far_set_size = fc * nc; in setup_geo()