Searched refs:near_copies (Results 1 – 3 of 3) sorted by relevance
602 chunk *= geo->near_copies; in __raid10_find_phys()611 for (n = 0; n < geo->near_copies; n++) { in __raid10_find_phys()621 d += geo->near_copies; in __raid10_find_phys()687 dev -= fc * geo->near_copies; in raid10_find_virt()693 if (dev < (geo->near_copies + far_set_start)) in raid10_find_virt()694 dev += far_set_size - geo->near_copies; in raid10_find_virt()696 dev -= geo->near_copies; in raid10_find_virt()701 sector_div(vchunk, geo->near_copies); in raid10_find_virt()826 if (geo->near_copies > 1 && !pending) in read_balance()1664 if (geo->near_copies) in raid10_handle_discard()[all …]
37 int near_copies; /* number of copies laid out member
1750 unsigned int near_copies; in rs_check_takeover() local1787 near_copies = __raid10_near_copies(mddev->layout); in rs_check_takeover()1792 if (near_copies > 1 && in rs_check_takeover()1793 !(mddev->raid_disks % near_copies)) { in rs_check_takeover()1794 mddev->raid_disks /= near_copies; in rs_check_takeover()1800 if (near_copies == 1 && in rs_check_takeover()1809 max(near_copies, __raid10_far_copies(mddev->layout)) == mddev->raid_disks) in rs_check_takeover()