Lines Matching defs:mddev2
2288 static int match_mddev_units(struct mddev *mddev1, struct mddev *mddev2)
2298 rdev_for_each_rcu(rdev2, mddev2) {
5703 struct mddev *mddev2;
5706 list_for_each_entry(mddev2, &all_mddevs, all_mddevs)
5707 if (mddev2->gendisk &&
5708 strcmp(mddev2->gendisk->disk_name, name) == 0) {
8805 struct mddev *mddev2;
8876 list_for_each_entry(mddev2, &all_mddevs, all_mddevs) {
8877 if (test_bit(MD_DELETED, &mddev2->flags))
8879 if (mddev2 == mddev)
8882 && mddev2->curr_resync
8883 && match_mddev_units(mddev, mddev2)) {
8885 if (mddev < mddev2 &&
8891 if (mddev > mddev2 &&
8903 mddev2->curr_resync >= mddev->curr_resync) {
8904 if (mddev2_minor != mddev2->md_minor) {
8905 mddev2_minor = mddev2->md_minor;
8908 mdname(mddev2));