Lines Matching defs:mddev2
2333 static int match_mddev_units(struct mddev *mddev1, struct mddev *mddev2)
2343 rdev_for_each_rcu(rdev2, mddev2) {
5735 struct mddev *mddev2;
5738 list_for_each_entry(mddev2, &all_mddevs, all_mddevs)
5739 if (mddev2->gendisk &&
5740 strcmp(mddev2->gendisk->disk_name, name) == 0) {
8681 struct mddev *mddev2;
8758 for_each_mddev(mddev2, tmp) {
8759 if (mddev2 == mddev)
8762 && mddev2->curr_resync
8763 && match_mddev_units(mddev, mddev2)) {
8765 if (mddev < mddev2 && mddev->curr_resync == 2) {
8770 if (mddev > mddev2 && mddev->curr_resync == 1)
8781 mddev2->curr_resync >= mddev->curr_resync) {
8782 if (mddev2_minor != mddev2->md_minor) {
8783 mddev2_minor = mddev2->md_minor;
8786 mdname(mddev2));
8788 mddev_put(mddev2);