Lines Matching refs:first_bad
522 sector_t first_bad; in raid10_end_write_request() local
541 &first_bad, &bad_sectors) && !discard_error) { in raid10_end_write_request()
771 sector_t first_bad; in read_balance() local
793 &first_bad, &bad_sectors)) { in read_balance()
797 if (first_bad <= dev_sector) { in read_balance()
802 bad_sectors -= (dev_sector - first_bad); in read_balance()
809 first_bad - dev_sector; in read_balance()
1361 sector_t first_bad; in wait_blocked_dev() local
1374 &first_bad, &bad_sectors); in wait_blocked_dev()
1493 sector_t first_bad; in raid10_write_request() local
1499 &first_bad, &bad_sectors); in raid10_write_request()
1500 if (is_bad && first_bad <= dev_sector) { in raid10_write_request()
1502 bad_sectors -= (dev_sector - first_bad); in raid10_write_request()
1519 int good_sectors = first_bad - dev_sector; in raid10_write_request()
2345 sector_t first_bad; in end_sync_write() local
2370 &first_bad, &bad_sectors)) in end_sync_write()
2685 sector_t first_bad; in r10_sync_page_io() local
2688 if (is_badblock(rdev, sector, sectors, &first_bad, &bad_sectors) in r10_sync_page_io()
2756 sector_t first_bad; in fix_read_error() local
2765 &first_bad, &bad_sectors) == 0) { in fix_read_error()
3520 sector_t sector, first_bad; in raid10_sync_request() local
3530 &first_bad, &bad_sectors)) { in raid10_sync_request()
3531 if (first_bad > sector) in raid10_sync_request()
3532 max_sync = first_bad - sector; in raid10_sync_request()
3535 - first_bad); in raid10_sync_request()
3712 sector_t first_bad, sector; in raid10_sync_request() local
3729 &first_bad, &bad_sectors)) { in raid10_sync_request()
3730 if (first_bad > sector) in raid10_sync_request()
3731 max_sync = first_bad - sector; in raid10_sync_request()
3733 bad_sectors -= (sector - first_bad); in raid10_sync_request()