|
@@ -418,7 +418,7 @@ static void raid1_end_write_request(struct bio *bio, int error)
|
|
|
*/
|
|
|
static int read_balance(conf_t *conf, r1bio_t *r1_bio)
|
|
|
{
|
|
|
- const unsigned long this_sector = r1_bio->sector;
|
|
|
+ const sector_t this_sector = r1_bio->sector;
|
|
|
int new_disk = conf->last_used, disk = new_disk;
|
|
|
int wonly_disk = -1;
|
|
|
const int sectors = r1_bio->sectors;
|
|
@@ -434,7 +434,7 @@ static int read_balance(conf_t *conf, r1bio_t *r1_bio)
|
|
|
retry:
|
|
|
if (conf->mddev->recovery_cp < MaxSector &&
|
|
|
(this_sector + sectors >= conf->next_resync)) {
|
|
|
- /* Choose the first operation device, for consistancy */
|
|
|
+ /* Choose the first operational device, for consistancy */
|
|
|
new_disk = 0;
|
|
|
|
|
|
for (rdev = rcu_dereference(conf->mirrors[new_disk].rdev);
|