Home
last modified time | relevance | path

Searched refs:disk_idx (Results 1 – 3 of 3) sorted by relevance

/linux/drivers/md/
H A Draid5.c3733 static int want_replace(struct stripe_head *sh, int disk_idx) in want_replace() argument
3738 rdev = sh->raid_conf->disks[disk_idx].replacement; in want_replace()
3749 int disk_idx, int disks) in need_this_block() argument
3751 struct r5dev *dev = &sh->dev[disk_idx]; in need_this_block()
3776 (s->replacing && want_replace(sh, disk_idx))) in need_this_block()
3861 int disk_idx, int disks) in fetch_block() argument
3863 struct r5dev *dev = &sh->dev[disk_idx]; in fetch_block()
3866 if (need_this_block(sh, s, disk_idx, disks)) { in fetch_block()
3884 ((sh->qd_idx >= 0 && sh->pd_idx == disk_idx) || in fetch_block()
3885 (s->failed && (disk_idx == s->failed_num[0] || in fetch_block()
[all …]
H A Draid10.c3951 int i, disk_idx; in raid10_run() local
3987 disk_idx = rdev->raid_disk; in raid10_run()
3988 if (disk_idx < 0) in raid10_run()
3990 if (disk_idx >= conf->geo.raid_disks && in raid10_run()
3991 disk_idx >= conf->prev.raid_disks) in raid10_run()
3993 disk = conf->mirrors + disk_idx; in raid10_run()
H A Draid1.c3115 int disk_idx = rdev->raid_disk; in setup_conf() local
3117 if (disk_idx >= conf->raid_disks || disk_idx < 0) in setup_conf()
3120 if (!raid1_add_conf(conf, rdev, disk_idx, in setup_conf()