Home
last modified time | relevance | path

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

/linux/drivers/md/
A Draid5.h786 static inline int raid5_get_page_offset(struct stripe_head *sh, int disk_idx) in raid5_get_page_offset() argument
788 return (disk_idx % sh->stripes_per_page) * RAID5_STRIPE_SIZE(sh->raid_conf); in raid5_get_page_offset()
795 raid5_get_dev_page(struct stripe_head *sh, int disk_idx) in raid5_get_dev_page() argument
797 return sh->pages[disk_idx / sh->stripes_per_page]; in raid5_get_dev_page()
A Dmd-multipath.c346 int disk_idx; in multipath_run() local
379 disk_idx = rdev->raid_disk; in multipath_run()
380 if (disk_idx < 0 || in multipath_run()
381 disk_idx >= mddev->raid_disks) in multipath_run()
384 disk = conf->multipaths + disk_idx; in multipath_run()
A Draid5.c3730 int disk_idx, int disks) in need_this_block() argument
3732 struct r5dev *dev = &sh->dev[disk_idx]; in need_this_block()
3837 int disk_idx, int disks) in fetch_block() argument
3839 struct r5dev *dev = &sh->dev[disk_idx]; in fetch_block()
3842 if (need_this_block(sh, s, disk_idx, disks)) { in fetch_block()
3862 disk_idx == s->failed_num[1])))) { in fetch_block()
3871 sh->ops.target = disk_idx; in fetch_block()
3888 if (other == disk_idx) in fetch_block()
3897 disk_idx, other); in fetch_block()
3902 sh->ops.target = disk_idx; in fetch_block()
[all …]
A Draid1.c3006 int disk_idx = rdev->raid_disk; in setup_conf() local
3007 if (disk_idx >= mddev->raid_disks in setup_conf()
3008 || disk_idx < 0) in setup_conf()
3011 disk = conf->mirrors + mddev->raid_disks + disk_idx; in setup_conf()
3013 disk = conf->mirrors + disk_idx; in setup_conf()
A Draid10.c4050 int i, disk_idx; in raid10_run() local
4098 disk_idx = rdev->raid_disk; in raid10_run()
4099 if (disk_idx < 0) in raid10_run()
4101 if (disk_idx >= conf->geo.raid_disks && in raid10_run()
4102 disk_idx >= conf->prev.raid_disks) in raid10_run()
4104 disk = conf->mirrors + disk_idx; in raid10_run()

Completed in 32 milliseconds