Lines Matching refs:near_copies

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()
1618 if (geo->near_copies) in raid10_handle_discard()
1619 stripe_data_disks = geo->raid_disks / geo->near_copies + in raid10_handle_discard()
1620 geo->raid_disks % geo->near_copies; in raid10_handle_discard()
1674 chunk *= geo->near_copies; in raid10_handle_discard()
1683 chunk *= geo->near_copies; in raid10_handle_discard()
1853 && (conf->geo.near_copies < conf->geo.raid_disks in raid10_make_request()
1854 || conf->prev.near_copies < in raid10_make_request()
1873 if (conf->geo.near_copies < conf->geo.raid_disks) in raid10_status()
1875 if (conf->geo.near_copies > 1) in raid10_status()
1876 seq_printf(seq, " %d near-copies", conf->geo.near_copies); in raid10_status()
1907 ncopies = conf->prev.near_copies; in _enough()
1910 ncopies = conf->geo.near_copies; in _enough()
3092 chunks = conf->geo.raid_disks / conf->geo.near_copies; in raid10_set_cluster_sync_high()
3093 if (conf->geo.raid_disks % conf->geo.near_copies == 0) in raid10_set_cluster_sync_high()
3261 if (conf->geo.near_copies < conf->geo.raid_disks && in raid10_sync_request()
3775 sector_div(size, conf->geo.near_copies); in raid10_size()
3790 sector_div(size, conf->geo.near_copies); in calc_sectors()
3843 geo->near_copies = nc; in setup_geo()
3972 if (conf->geo.raid_disks % conf->geo.near_copies) in raid10_nr_stripes()
3974 return raid_disks / conf->geo.near_copies; in raid10_nr_stripes()
4583 s *= geo->near_copies; in last_dev_address()
4597 s *= geo->near_copies; in first_dev_address()