• Home
  • Raw
  • Download

Lines Matching refs:raid_disks

94 	int size = offsetof(struct r10bio, devs[conf->geo.raid_disks]);  in r10bio_pool_alloc()
241 for (i = 0; i < conf->geo.raid_disks; i++) { in put_all_bios()
332 for (slot = 0; slot < conf->geo.raid_disks; slot++) { in find_bio_disk()
572 last_far_set_start = (geo->raid_disks / geo->far_set_size) - 1; in __raid10_find_phys()
576 last_far_set_size += (geo->raid_disks % geo->far_set_size); in __raid10_find_phys()
584 dev = sector_div(stripe, geo->raid_disks); in __raid10_find_phys()
603 if ((geo->raid_disks % geo->far_set_size) && in __raid10_find_phys()
618 if (dev >= geo->raid_disks) { in __raid10_find_phys()
651 if (geo->raid_disks % geo->far_set_size) { in raid10_find_virt()
652 last_far_set_start = (geo->raid_disks / geo->far_set_size) - 1; in raid10_find_virt()
657 far_set_size += (geo->raid_disks % geo->far_set_size); in raid10_find_virt()
680 vchunk = chunk * geo->raid_disks + dev; in raid10_find_virt()
1581 conf->geo.raid_disks); in __make_request()
1686 stripe_data_disks = geo->raid_disks / geo->near_copies + in raid10_handle_discard()
1687 geo->raid_disks % geo->near_copies; in raid10_handle_discard()
1689 stripe_data_disks = geo->raid_disks; in raid10_handle_discard()
1743 start_disk_index = sector_div(first_stripe_index, geo->raid_disks); in raid10_handle_discard()
1752 end_disk_index = sector_div(last_stripe_index, geo->raid_disks); in raid10_handle_discard()
1763 memset(r10_bio->devs, 0, sizeof(r10_bio->devs[0]) * geo->raid_disks); in raid10_handle_discard()
1787 for (disk = 0; disk < geo->raid_disks; disk++) { in raid10_handle_discard()
1813 for (disk = 0; disk < geo->raid_disks; disk++) { in raid10_handle_discard()
1920 && (conf->geo.near_copies < conf->geo.raid_disks in raid10_make_request()
1922 conf->prev.raid_disks))) in raid10_make_request()
1938 if (conf->geo.near_copies < conf->geo.raid_disks) in raid10_status()
1947 if (conf->geo.far_set_size != conf->geo.raid_disks) in raid10_status()
1950 seq_printf(seq, " [%d/%d] [", conf->geo.raid_disks, in raid10_status()
1951 conf->geo.raid_disks - mddev->degraded); in raid10_status()
1953 for (i = 0; i < conf->geo.raid_disks; i++) { in raid10_status()
1972 disks = conf->prev.raid_disks; in _enough()
1975 disks = conf->geo.raid_disks; in _enough()
2056 mdname(mddev), conf->geo.raid_disks - mddev->degraded); in raid10_error()
2069 pr_debug(" --- wd:%d rd:%d\n", conf->geo.raid_disks - conf->mddev->degraded, in print_conf()
2070 conf->geo.raid_disks); in print_conf()
2074 for (i = 0; i < conf->geo.raid_disks; i++) { in print_conf()
2105 for (i = 0; i < conf->geo.raid_disks; i++) { in raid10_spare_active()
2147 int last = conf->geo.raid_disks - 1; in raid10_add_disk()
2164 rdev->saved_raid_disk < conf->geo.raid_disks && in raid10_add_disk()
2218 if (unlikely(number >= mddev->raid_disks)) in raid10_remove_disk()
2239 number < conf->geo.raid_disks && in raid10_remove_disk()
3189 for (i = 0; i < conf->geo.raid_disks; i++) in init_resync()
3250 chunks = conf->geo.raid_disks / conf->geo.near_copies; in raid10_set_cluster_sync_high()
3251 if (conf->geo.raid_disks % conf->geo.near_copies == 0) in raid10_set_cluster_sync_high()
3360 else for (i = 0; i < conf->geo.raid_disks; i++) { in raid10_sync_request()
3375 for (i = 0; i < conf->geo.raid_disks; i++) { in raid10_sync_request()
3394 if (chunks_skipped >= conf->geo.raid_disks) { in raid10_sync_request()
3408 if (conf->geo.near_copies < conf->geo.raid_disks && in raid10_sync_request()
3440 for (i = 0 ; i < conf->geo.raid_disks; i++) { in raid10_sync_request()
3518 for (j = 0; j < conf->geo.raid_disks; j++) { in raid10_sync_request()
3851 for (i = 0; i < conf->geo.raid_disks; i++) { in raid10_sync_request()
3918 raid10_size(struct mddev *mddev, sector_t sectors, int raid_disks) in raid10_size() argument
3923 if (!raid_disks) in raid10_size()
3924 raid_disks = min(conf->geo.raid_disks, in raid10_size()
3925 conf->prev.raid_disks); in raid10_size()
3931 size = size * raid_disks; in raid10_size()
3946 size = size * conf->geo.raid_disks; in calc_sectors()
3955 size = DIV_ROUND_UP_SECTOR_T(size, conf->geo.raid_disks); in calc_sectors()
3976 disks = mddev->raid_disks - mddev->delta_disks; in setup_geo()
3981 disks = mddev->raid_disks; in setup_geo()
3988 disks = mddev->raid_disks + mddev->delta_disks; in setup_geo()
3999 geo->raid_disks = disks; in setup_geo()
4053 if (copies < 2 || copies > mddev->raid_disks) { in setup_conf()
4065 conf->mirrors = kcalloc(mddev->raid_disks + max(0, -mddev->delta_disks), in setup_conf()
4126 int raid_disks = conf->geo.raid_disks; in raid10_set_io_opt() local
4128 if (!(conf->geo.raid_disks % conf->geo.near_copies)) in raid10_set_io_opt()
4129 raid_disks /= conf->geo.near_copies; in raid10_set_io_opt()
4131 raid_disks); in raid10_set_io_opt()
4188 if (disk_idx >= conf->geo.raid_disks && in raid10_run()
4189 disk_idx >= conf->prev.raid_disks) in raid10_run()
4248 i < conf->geo.raid_disks in raid10_run()
4249 || i < conf->prev.raid_disks; in raid10_run()
4283 mdname(mddev), conf->geo.raid_disks - mddev->degraded, in raid10_run()
4284 conf->geo.raid_disks); in raid10_run()
4409 mddev->delta_disks = mddev->raid_disks; in raid10_takeover_raid0()
4410 mddev->raid_disks *= 2; in raid10_takeover_raid0()
4491 kcalloc(mddev->raid_disks + mddev->delta_disks, in raid10_check_reshape()
4521 for (i = 0; i < conf->prev.raid_disks; i++) { in calc_degraded()
4533 if (conf->geo.raid_disks == conf->prev.raid_disks) in calc_degraded()
4537 for (i = 0; i < conf->geo.raid_disks; i++) { in calc_degraded()
4547 if (conf->geo.raid_disks <= conf->prev.raid_disks) in calc_degraded()
4616 sizeof(struct raid10_info)*conf->prev.raid_disks); in raid10_start_reshape()
4645 newsize = raid10_size(mddev, 0, conf->geo.raid_disks); in raid10_start_reshape()
4687 conf->prev.raid_disks) in raid10_start_reshape()
4695 } else if (rdev->raid_disk >= conf->prev.raid_disks in raid10_start_reshape()
4708 mddev->raid_disks = conf->geo.raid_disks; in raid10_start_reshape()
4733 mddev->raid_disks = conf->geo.raid_disks; in raid10_start_reshape()
4755 s = DIV_ROUND_UP_SECTOR_T(s, geo->raid_disks); in last_dev_address()
4769 sector_div(s, geo->raid_disks); in first_dev_address()
5261 for (d = conf->geo.raid_disks ; in raid10_finish_reshape()
5262 d < conf->geo.raid_disks - mddev->delta_disks; in raid10_finish_reshape()