Lines Matching refs:near_copies
607 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()
1688 stripe_data_disks = geo->raid_disks / geo->near_copies + in raid10_handle_discard()
1689 geo->raid_disks % geo->near_copies; in raid10_handle_discard()
1743 chunk *= geo->near_copies; in raid10_handle_discard()
1752 chunk *= geo->near_copies; in raid10_handle_discard()
1924 && (conf->geo.near_copies < conf->geo.raid_disks in raid10_make_request()
1925 || conf->prev.near_copies < in raid10_make_request()
1942 if (conf->geo.near_copies < conf->geo.raid_disks) in raid10_status()
1944 if (conf->geo.near_copies > 1) in raid10_status()
1945 seq_printf(seq, " %d near-copies", conf->geo.near_copies); in raid10_status()
1977 ncopies = conf->prev.near_copies; in _enough()
1980 ncopies = conf->geo.near_copies; in _enough()
3245 chunks = conf->geo.raid_disks / conf->geo.near_copies; in raid10_set_cluster_sync_high()
3246 if (conf->geo.raid_disks % conf->geo.near_copies == 0) in raid10_set_cluster_sync_high()
3417 if (conf->geo.near_copies < conf->geo.raid_disks && in raid10_sync_request()
3944 sector_div(size, conf->geo.near_copies); in raid10_size()
3959 sector_div(size, conf->geo.near_copies); in calc_sectors()
4012 geo->near_copies = nc; in setup_geo()
4141 if (!(conf->geo.raid_disks % conf->geo.near_copies)) in raid10_set_io_opt()
4142 raid_disks /= conf->geo.near_copies; in raid10_set_io_opt()
4751 s *= geo->near_copies; in last_dev_address()
4765 s *= geo->near_copies; in first_dev_address()