Lines Matching refs:rdev1
67 struct md_rdev *smallest, *rdev1, *rdev2, *rdev, **dev; in create_strip_zones() local
76 rdev_for_each(rdev1, mddev) { in create_strip_zones()
79 rdev1->bdev); in create_strip_zones()
83 sectors = rdev1->sectors; in create_strip_zones()
85 rdev1->sectors = sectors * mddev->chunk_sectors; in create_strip_zones()
88 rdev1->bdev->bd_disk->queue)); in create_strip_zones()
94 rdev1->bdev, in create_strip_zones()
95 (unsigned long long)rdev1->sectors, in create_strip_zones()
98 if (rdev2 == rdev1) { in create_strip_zones()
103 if (rdev2->sectors == rdev1->sectors) { in create_strip_zones()
160 rdev_for_each(rdev1, mddev) { in create_strip_zones()
161 int j = rdev1->raid_disk; in create_strip_zones()
166 rdev1->new_raid_disk = j; in create_strip_zones()
174 rdev1->new_raid_disk = j; in create_strip_zones()
192 dev[j] = rdev1; in create_strip_zones()
194 if (!smallest || (rdev1->sectors < smallest->sectors)) in create_strip_zones()
195 smallest = rdev1; in create_strip_zones()