Searched refs:near_copies (Results 1 – 3 of 3) sorted by relevance
617 chunk *= geo->near_copies; in __raid10_find_phys()626 for (n = 0; n < geo->near_copies; n++) { in __raid10_find_phys()636 d += geo->near_copies; in __raid10_find_phys()702 dev -= fc * geo->near_copies; in raid10_find_virt()708 if (dev < (geo->near_copies + far_set_start)) in raid10_find_virt()709 dev += far_set_size - geo->near_copies; in raid10_find_virt()711 dev -= geo->near_copies; in raid10_find_virt()716 sector_div(vchunk, geo->near_copies); in raid10_find_virt()835 if (geo->near_copies > 1 && !atomic_read(&rdev->nr_pending)) in read_balance()1575 && (conf->geo.near_copies < conf->geo.raid_disks in raid10_make_request()[all …]
37 int near_copies; /* number of copies laid out member
1739 unsigned int near_copies; in rs_check_takeover() local1776 near_copies = __raid10_near_copies(mddev->layout); in rs_check_takeover()1781 if (near_copies > 1 && in rs_check_takeover()1782 !(mddev->raid_disks % near_copies)) { in rs_check_takeover()1783 mddev->raid_disks /= near_copies; in rs_check_takeover()1789 if (near_copies == 1 && in rs_check_takeover()1798 max(near_copies, __raid10_far_copies(mddev->layout)) == mddev->raid_disks) in rs_check_takeover()