Lines Matching refs:new_disk
414 int new_disk = -1; in read_balance() local
449 new_disk = disk; in read_balance()
454 if (new_disk < 0 || choose_first) in read_balance()
462 if (this_sector == conf->mirrors[new_disk].head_position) in read_balance()
466 - conf->mirrors[new_disk].head_position); in read_balance()
469 start_disk = new_disk; in read_balance()
483 new_disk = disk; in read_balance()
489 new_disk = disk; in read_balance()
494 if (new_disk >= 0) { in read_balance()
495 rdev = rcu_dereference(conf->mirrors[new_disk].rdev); in read_balance()
507 conf->last_used = new_disk; in read_balance()
511 return new_disk; in read_balance()