Lines Matching defs:disk_idx
3777 static int want_replace(struct stripe_head *sh, int disk_idx)
3782 rdev = sh->raid_conf->disks[disk_idx].replacement;
3793 int disk_idx, int disks)
3795 struct r5dev *dev = &sh->dev[disk_idx];
3815 (s->replacing && want_replace(sh, disk_idx)))
3900 int disk_idx, int disks)
3902 struct r5dev *dev = &sh->dev[disk_idx];
3905 if (need_this_block(sh, s, disk_idx, disks)) {
3923 ((sh->qd_idx >= 0 && sh->pd_idx == disk_idx) ||
3924 (s->failed && (disk_idx == s->failed_num[0] ||
3925 disk_idx == s->failed_num[1])))) {
3930 (unsigned long long)sh->sector, disk_idx);
3934 sh->ops.target = disk_idx;
3951 if (other == disk_idx)
3960 disk_idx, other);
3963 set_bit(R5_Wantcompute, &sh->dev[disk_idx].flags);
3965 sh->ops.target = disk_idx;
3975 disk_idx, s->syncing);