Lines Matching refs:rdev1
99 mdk_rdev_t *smallest, *rdev1, *rdev2, *rdev, **dev;
107 list_for_each_entry(rdev1, &mddev->disks, same_set) {
110 bdevname(rdev1->bdev, b));
114 sectors = rdev1->sectors;
116 rdev1->sectors = sectors * mddev->chunk_sectors;
121 bdevname(rdev1->bdev,b),
122 (unsigned long long)rdev1->sectors);
126 if (rdev2 == rdev1) {
131 if (rdev2->sectors == rdev1->sectors) {
173 list_for_each_entry(rdev1, &mddev->disks, same_set) {
174 int j = rdev1->raid_disk;
179 rdev1->new_raid_disk = j;
192 dev[j] = rdev1;
194 disk_stack_limits(mddev->gendisk, rdev1->bdev,
195 rdev1->data_offset << 9);
201 if (rdev1->bdev->bd_disk->queue->merge_bvec_fn) {
206 if (!smallest || (rdev1->sectors < smallest->sectors))
207 smallest = rdev1;