Lines Matching refs:rdev
139 static int multipath_map (mddev_t *mddev, kdev_t *rdev) in multipath_map() argument
151 *rdev = conf->multipaths[i].dev; in multipath_map()
833 mdk_rdev_t *rdev, *def_rdev = NULL; in multipath_run() local
857 ITERATE_RDEV(mddev,rdev,tmp) { in multipath_run()
858 if (rdev->faulty) { in multipath_run()
861 printk(ERRORS, partition_name(rdev->dev)); in multipath_run()
866 if (!rdev->sb) { in multipath_run()
871 if (rdev->desc_nr == -1) { in multipath_run()
876 desc = &sb->disks[rdev->desc_nr]; in multipath_run()
881 printk(NOT_IN_SYNC, partition_name(rdev->dev)); in multipath_run()
890 disk->dev = rdev->dev; in multipath_run()
898 printk(OPERATIONAL, partition_name(rdev->dev), in multipath_run()
903 def_rdev = rdev; in multipath_run()
910 if(!num_rdevs++) def_rdev = rdev; in multipath_run()
926 rdev = find_rdev_nr(mddev, 0); in multipath_run()
937 if(rdev) { in multipath_run()
938 xchg_values(def_rdev->desc_nr,rdev->desc_nr); in multipath_run()