Lines Matching refs:dev_sector
746 sector_t dev_sector; in read_balance() local
764 dev_sector = r10_bio->devs[slot].addr; in read_balance()
765 if (is_badblock(rdev, dev_sector, sectors, in read_balance()
770 if (first_bad <= dev_sector) { in read_balance()
775 bad_sectors -= (dev_sector - first_bad); in read_balance()
782 first_bad - dev_sector; in read_balance()
1308 sector_t dev_sector = r10_bio->devs[i].addr; in wait_blocked_dev() local
1319 is_bad = is_badblock(rdev, dev_sector, r10_bio->sectors, in wait_blocked_dev()
1435 sector_t dev_sector = r10_bio->devs[i].addr; in raid10_write_request() local
1439 is_bad = is_badblock(rdev, dev_sector, max_sectors, in raid10_write_request()
1441 if (is_bad && first_bad <= dev_sector) { in raid10_write_request()
1443 bad_sectors -= (dev_sector - first_bad); in raid10_write_request()
1460 int good_sectors = first_bad - dev_sector; in raid10_write_request()