Searched refs:disk_idx (Results 1 - 4 of 4) sorted by relevance
/linux-4.1.27/drivers/md/ |
H A D | multipath.c | 388 int disk_idx; multipath_run() local 427 disk_idx = rdev->raid_disk; rdev_for_each() 428 if (disk_idx < 0 || rdev_for_each() 429 disk_idx >= mddev->raid_disks) rdev_for_each() 432 disk = conf->multipaths + disk_idx; rdev_for_each()
|
H A D | raid5.c | 3234 static int want_replace(struct stripe_head *sh, int disk_idx) want_replace() argument 3239 rdev = sh->raid_conf->disks[disk_idx].replacement; want_replace() 3258 int disk_idx, int disks) need_this_block() 3260 struct r5dev *dev = &sh->dev[disk_idx]; need_this_block() 3279 (s->replacing && want_replace(sh, disk_idx))) need_this_block() 3348 int disk_idx, int disks) fetch_block() 3350 struct r5dev *dev = &sh->dev[disk_idx]; fetch_block() 3353 if (need_this_block(sh, s, disk_idx, disks)) { fetch_block() 3361 (s->failed && (disk_idx == s->failed_num[0] || fetch_block() 3362 disk_idx == s->failed_num[1]))) { fetch_block() 3367 (unsigned long long)sh->sector, disk_idx); fetch_block() 3371 sh->ops.target = disk_idx; fetch_block() 3388 if (other == disk_idx) fetch_block() 3397 disk_idx, other); fetch_block() 3400 set_bit(R5_Wantcompute, &sh->dev[disk_idx].flags); fetch_block() 3402 sh->ops.target = disk_idx; fetch_block() 3412 disk_idx, s->syncing); fetch_block() 3257 need_this_block(struct stripe_head *sh, struct stripe_head_state *s, int disk_idx, int disks) need_this_block() argument 3347 fetch_block(struct stripe_head *sh, struct stripe_head_state *s, int disk_idx, int disks) fetch_block() argument
|
H A D | raid1.c | 2799 int disk_idx = rdev->raid_disk; rdev_for_each() local 2800 if (disk_idx >= mddev->raid_disks rdev_for_each() 2801 || disk_idx < 0) rdev_for_each() 2804 disk = conf->mirrors + mddev->raid_disks + disk_idx; rdev_for_each() 2806 disk = conf->mirrors + disk_idx; rdev_for_each()
|
H A D | raid10.c | 3600 int i, disk_idx, chunk_size; run() local 3638 disk_idx = rdev->raid_disk; rdev_for_each() 3639 if (disk_idx < 0) rdev_for_each() 3641 if (disk_idx >= conf->geo.raid_disks && rdev_for_each() 3642 disk_idx >= conf->prev.raid_disks) rdev_for_each() 3644 disk = conf->mirrors + disk_idx; rdev_for_each()
|
Completed in 205 milliseconds