Searched refs:disk_idx (Results 1 – 5 of 5) sorted by relevance
/openbmc/linux/drivers/md/ |
H A D | md-multipath.c | 340 int disk_idx; in multipath_run() local 373 disk_idx = rdev->raid_disk; in multipath_run() 374 if (disk_idx < 0 || in multipath_run() 375 disk_idx >= mddev->raid_disks) in multipath_run() 378 disk = conf->multipaths + disk_idx; in multipath_run()
|
H A D | raid5.h | 787 static inline int raid5_get_page_offset(struct stripe_head *sh, int disk_idx) in raid5_get_page_offset() argument 789 return (disk_idx % sh->stripes_per_page) * RAID5_STRIPE_SIZE(sh->raid_conf); in raid5_get_page_offset() 796 raid5_get_dev_page(struct stripe_head *sh, int disk_idx) in raid5_get_dev_page() argument 798 return sh->pages[disk_idx / sh->stripes_per_page]; in raid5_get_dev_page()
|
H A D | raid5.c | 3785 static int want_replace(struct stripe_head *sh, int disk_idx) in want_replace() argument 3791 rdev = rcu_dereference(sh->raid_conf->disks[disk_idx].replacement); in want_replace() 3803 int disk_idx, int disks) in need_this_block() argument 3805 struct r5dev *dev = &sh->dev[disk_idx]; in need_this_block() 3825 (s->replacing && want_replace(sh, disk_idx))) in need_this_block() 3910 int disk_idx, int disks) in fetch_block() argument 3912 struct r5dev *dev = &sh->dev[disk_idx]; in fetch_block() 3915 if (need_this_block(sh, s, disk_idx, disks)) { in fetch_block() 3933 ((sh->qd_idx >= 0 && sh->pd_idx == disk_idx) || in fetch_block() 3934 (s->failed && (disk_idx == s->failed_num[0] || in fetch_block() [all …]
|
H A D | raid1.c | 3005 int disk_idx = rdev->raid_disk; in setup_conf() local 3006 if (disk_idx >= mddev->raid_disks in setup_conf() 3007 || disk_idx < 0) in setup_conf() 3010 disk = conf->mirrors + mddev->raid_disks + disk_idx; in setup_conf() 3012 disk = conf->mirrors + disk_idx; in setup_conf()
|
H A D | raid10.c | 4128 int i, disk_idx; in raid10_run() local 4172 disk_idx = rdev->raid_disk; in raid10_run() 4173 if (disk_idx < 0) in raid10_run() 4175 if (disk_idx >= conf->geo.raid_disks && in raid10_run() 4176 disk_idx >= conf->prev.raid_disks) in raid10_run() 4178 disk = conf->mirrors + disk_idx; in raid10_run()
|