Home
last modified time | relevance | path

Searched refs:near_copies (Results 1 – 3 of 3) sorted by relevance

/Linux-v6.6/drivers/md/
Draid10.c607 chunk *= geo->near_copies; in __raid10_find_phys()
616 for (n = 0; n < geo->near_copies; n++) { in __raid10_find_phys()
626 d += geo->near_copies; in __raid10_find_phys()
692 dev -= fc * geo->near_copies; in raid10_find_virt()
698 if (dev < (geo->near_copies + far_set_start)) in raid10_find_virt()
699 dev += far_set_size - geo->near_copies; in raid10_find_virt()
701 dev -= geo->near_copies; in raid10_find_virt()
706 sector_div(vchunk, geo->near_copies); in raid10_find_virt()
848 if (geo->near_copies > 1 && !pending) in read_balance()
1687 if (geo->near_copies) in raid10_handle_discard()
[all …]
Draid10.h37 int near_copies; /* number of copies laid out member
Ddm-raid.c1718 unsigned int near_copies; in rs_check_takeover() local
1755 near_copies = __raid10_near_copies(mddev->layout); in rs_check_takeover()
1760 if (near_copies > 1 && in rs_check_takeover()
1761 !(mddev->raid_disks % near_copies)) { in rs_check_takeover()
1762 mddev->raid_disks /= near_copies; in rs_check_takeover()
1768 if (near_copies == 1 && in rs_check_takeover()
1777 max(near_copies, __raid10_far_copies(mddev->layout)) == mddev->raid_disks) in rs_check_takeover()