Lines Matching refs:disk_idx
3814 static int want_replace(struct stripe_head *sh, int disk_idx) in want_replace() argument
3820 rdev = rcu_dereference(sh->raid_conf->disks[disk_idx].replacement); in want_replace()
3832 int disk_idx, int disks) in need_this_block() argument
3834 struct r5dev *dev = &sh->dev[disk_idx]; in need_this_block()
3854 (s->replacing && want_replace(sh, disk_idx))) in need_this_block()
3939 int disk_idx, int disks) in fetch_block() argument
3941 struct r5dev *dev = &sh->dev[disk_idx]; in fetch_block()
3944 if (need_this_block(sh, s, disk_idx, disks)) { in fetch_block()
3962 ((sh->qd_idx >= 0 && sh->pd_idx == disk_idx) || in fetch_block()
3963 (s->failed && (disk_idx == s->failed_num[0] || in fetch_block()
3964 disk_idx == s->failed_num[1])))) { in fetch_block()
3969 (unsigned long long)sh->sector, disk_idx); in fetch_block()
3973 sh->ops.target = disk_idx; in fetch_block()
3990 if (other == disk_idx) in fetch_block()
3999 disk_idx, other); in fetch_block()
4002 set_bit(R5_Wantcompute, &sh->dev[disk_idx].flags); in fetch_block()
4004 sh->ops.target = disk_idx; in fetch_block()
4014 disk_idx, s->syncing); in fetch_block()