• Home
  • Raw
  • Download

Lines Matching refs:mirrors

195 			rdev_dec_pending(conf->mirrors[i].rdev, r1_bio->mddev);  in put_buf()
274 conf->mirrors[disk].head_position = in update_head_pos()
321 !test_bit(Faulty, &conf->mirrors[mirror].rdev->flags))) in raid1_end_read_request()
328 rdev_dec_pending(conf->mirrors[mirror].rdev, conf->mddev); in raid1_end_read_request()
338 bdevname(conf->mirrors[mirror].rdev->bdev, in raid1_end_read_request()
397 &conf->mirrors[mirror].rdev->flags); in raid1_end_write_request()
399 &conf->mirrors[mirror].rdev->flags)) in raid1_end_write_request()
428 if (test_bit(In_sync, &conf->mirrors[mirror].rdev->flags) && in raid1_end_write_request()
429 !test_bit(Faulty, &conf->mirrors[mirror].rdev->flags)) in raid1_end_write_request()
433 if (is_badblock(conf->mirrors[mirror].rdev, in raid1_end_write_request()
442 if (test_bit(WriteMostly, &conf->mirrors[mirror].rdev->flags)) in raid1_end_write_request()
467 rdev_dec_pending(conf->mirrors[mirror].rdev, in raid1_end_write_request()
539 rdev = rcu_dereference(conf->mirrors[disk].rdev); in read_balance()
599 dist = abs(this_sector - conf->mirrors[disk].head_position); in read_balance()
605 if (conf->mirrors[disk].next_seq_sect == this_sector in read_balance()
608 struct raid1_info *mirror = &conf->mirrors[disk]; in read_balance()
668 rdev = rcu_dereference(conf->mirrors[best_disk].rdev); in read_balance()
681 if (conf->mirrors[best_disk].next_seq_sect != this_sector) in read_balance()
682 conf->mirrors[best_disk].seq_start = this_sector; in read_balance()
684 conf->mirrors[best_disk].next_seq_sect = this_sector + sectors; in read_balance()
706 conf->mirrors[disk].rdev); in raid1_mergeable_bvec()
736 struct md_rdev *rdev = rcu_dereference(conf->mirrors[i].rdev); in md_raid1_congested()
1086 mirror = conf->mirrors + rdisk; in make_request()
1170 struct md_rdev *rdev = rcu_dereference(conf->mirrors[i].rdev); in make_request()
1237 rdev_dec_pending(conf->mirrors[j].rdev, mddev); in make_request()
1297 if (test_bit(WriteMostly, &conf->mirrors[i].rdev->flags)) in make_request()
1304 conf->mirrors[i].rdev->data_offset); in make_request()
1305 mbio->bi_bdev = conf->mirrors[i].rdev->bdev; in make_request()
1362 struct md_rdev *rdev = rcu_dereference(conf->mirrors[i].rdev); in status()
1429 struct md_rdev *rdev = rcu_dereference(conf->mirrors[i].rdev); in print_conf()
1461 struct md_rdev *rdev = conf->mirrors[i].rdev; in raid1_spare_active()
1462 struct md_rdev *repl = conf->mirrors[conf->raid_disks + i].rdev; in raid1_spare_active()
1519 p = conf->mirrors+mirror; in raid1_add_disk()
1573 struct raid1_info *p = conf->mirrors + number; in raid1_remove_disk()
1576 p = conf->mirrors + conf->raid_disks + number; in raid1_remove_disk()
1601 } else if (conf->mirrors[conf->raid_disks + number].rdev) { in raid1_remove_disk()
1607 conf->mirrors[conf->raid_disks + number].rdev; in raid1_remove_disk()
1611 conf->mirrors[conf->raid_disks + number].rdev = NULL; in raid1_remove_disk()
1667 &conf->mirrors[mirror].rdev->flags); in end_sync_write()
1669 &conf->mirrors[mirror].rdev->flags)) in end_sync_write()
1673 } else if (is_badblock(conf->mirrors[mirror].rdev, in end_sync_write()
1677 !is_badblock(conf->mirrors[r1_bio->read_disk].rdev, in end_sync_write()
1750 rdev = conf->mirrors[d].rdev; in fix_sync_read_error()
1777 rdev = conf->mirrors[d].rdev; in fix_sync_read_error()
1806 rdev = conf->mirrors[d].rdev; in fix_sync_read_error()
1821 rdev = conf->mirrors[d].rdev; in fix_sync_read_error()
1855 rdev_dec_pending(conf->mirrors[primary].rdev, mddev); in process_checks()
1887 rdev_dec_pending(conf->mirrors[i].rdev, mddev); in process_checks()
1895 conf->mirrors[i].rdev->data_offset; in process_checks()
1896 sbio->bi_bdev = conf->mirrors[i].rdev->bdev; in process_checks()
1949 md_sync_acct(conf->mirrors[i].rdev->bdev, bio_sectors(wbio)); in sync_request_write()
1998 rdev = conf->mirrors[d].rdev; in fix_read_error()
2017 struct md_rdev *rdev = conf->mirrors[read_disk].rdev; in fix_read_error()
2028 rdev = conf->mirrors[d].rdev; in fix_read_error()
2040 rdev = conf->mirrors[d].rdev; in fix_read_error()
2065 struct md_rdev *rdev = conf->mirrors[i].rdev; in narrow_write_error()
2142 struct md_rdev *rdev = conf->mirrors[m].rdev; in handle_sync_write_finished()
2165 struct md_rdev *rdev = conf->mirrors[m].rdev; in handle_write_finished()
2177 conf->mirrors[m].rdev); in handle_write_finished()
2181 rdev_dec_pending(conf->mirrors[m].rdev, in handle_write_finished()
2213 md_error(mddev, conf->mirrors[r1_bio->read_disk].rdev); in handle_read_error()
2214 rdev_dec_pending(conf->mirrors[r1_bio->read_disk].rdev, conf->mddev); in handle_read_error()
2237 rdev = conf->mirrors[disk].rdev; in handle_read_error()
2443 rdev = rcu_dereference(conf->mirrors[i].rdev); in sync_request()
2512 struct md_rdev *rdev = conf->mirrors[i].rdev; in sync_request()
2652 conf->mirrors = kzalloc(sizeof(struct raid1_info) in setup_conf()
2655 if (!conf->mirrors) in setup_conf()
2683 disk = conf->mirrors + mddev->raid_disks + disk_idx; in setup_conf()
2685 disk = conf->mirrors + disk_idx; in setup_conf()
2711 disk = conf->mirrors + i; in setup_conf()
2752 kfree(conf->mirrors); in setup_conf()
2806 if (conf->mirrors[i].rdev == NULL || in run()
2807 !test_bit(In_sync, &conf->mirrors[i].rdev->flags) || in run()
2808 test_bit(Faulty, &conf->mirrors[i].rdev->flags)) in run()
2871 kfree(conf->mirrors); in stop()
2950 if (conf->mirrors[d].rdev) in raid1_reshape()
2983 struct md_rdev *rdev = conf->mirrors[d].rdev; in raid1_reshape()
2996 kfree(conf->mirrors); in raid1_reshape()
2997 conf->mirrors = newmirrors; in raid1_reshape()