Searched refs:disk_idx (Results 1 – 4 of 4) sorted by relevance
391 int disk_idx; in multipath_run() local429 disk_idx = rdev->raid_disk; in multipath_run()430 if (disk_idx < 0 || in multipath_run()431 disk_idx >= mddev->raid_disks) in multipath_run()434 disk = conf->multipaths + disk_idx; in multipath_run()
2327 int disk_idx, int disks) in fetch_block5() argument2329 struct r5dev *dev = &sh->dev[disk_idx]; in fetch_block5()2346 (s->failed && disk_idx == s->failed_num)) { in fetch_block5()2350 sh->ops.target = disk_idx; in fetch_block5()2365 pr_debug("Reading block %d (sync=%d)\n", disk_idx, in fetch_block5()2400 struct r6_state *r6s, int disk_idx, int disks) in fetch_block6() argument2402 struct r5dev *dev = &sh->dev[disk_idx]; in fetch_block6()2421 (s->failed && (disk_idx == r6s->failed_num[0] || in fetch_block6()2422 disk_idx == r6s->failed_num[1]))) { in fetch_block6()2427 (unsigned long long)sh->sector, disk_idx); in fetch_block6()[all …]
2237 int i, disk_idx, chunk_size; in run() local2270 disk_idx = rdev->raid_disk; in run()2271 if (disk_idx >= conf->raid_disks in run()2272 || disk_idx < 0) in run()2274 disk = conf->mirrors + disk_idx; in run()
1881 int disk_idx = rdev->raid_disk; in setup_conf() local1882 if (disk_idx >= mddev->raid_disks in setup_conf()1883 || disk_idx < 0) in setup_conf()1885 disk = conf->mirrors + disk_idx; in setup_conf()