Lines Matching refs:dev_sector
771 sector_t dev_sector; in read_balance() local
797 dev_sector = r10_bio->devs[slot].addr; in read_balance()
798 if (is_badblock(rdev, dev_sector, sectors, in read_balance()
803 if (first_bad <= dev_sector) { in read_balance()
808 bad_sectors -= (dev_sector - first_bad); in read_balance()
815 first_bad - dev_sector; in read_balance()
1369 sector_t dev_sector = r10_bio->devs[i].addr; in wait_blocked_dev() local
1380 is_bad = is_badblock(rdev, dev_sector, r10_bio->sectors, in wait_blocked_dev()
1499 sector_t dev_sector = r10_bio->devs[i].addr; in raid10_write_request() local
1503 is_bad = is_badblock(rdev, dev_sector, max_sectors, in raid10_write_request()
1505 if (is_bad && first_bad <= dev_sector) { in raid10_write_request()
1507 bad_sectors -= (dev_sector - first_bad); in raid10_write_request()
1524 int good_sectors = first_bad - dev_sector; in raid10_write_request()