Lines Matching defs:mddev2
2506 static int match_mddev_units(struct mddev *mddev1, struct mddev *mddev2)
2516 rdev_for_each_rcu(rdev2, mddev2) {
6329 struct mddev *mddev2;
6332 list_for_each_entry(mddev2, &all_mddevs, all_mddevs)
6333 if (mddev2->gendisk &&
6334 strcmp(mddev2->gendisk->disk_name, name) == 0) {
9649 struct mddev *mddev2;
9718 list_for_each_entry(mddev2, &all_mddevs, all_mddevs) {
9719 if (test_bit(MD_DELETED, &mddev2->flags))
9721 if (mddev2 == mddev)
9724 && mddev2->curr_resync
9725 && match_mddev_units(mddev, mddev2)) {
9727 if (mddev < mddev2 &&
9733 if (mddev > mddev2 &&
9745 mddev2->curr_resync >= mddev->curr_resync) {
9746 if (mddev2_minor != mddev2->md_minor) {
9747 mddev2_minor = mddev2->md_minor;
9750 mdname(mddev2));