Lines Matching refs:first_bad
498 sector_t first_bad; in raid1_end_write_request() local
517 &first_bad, &bad_sectors) && !discard_error) { in raid1_end_write_request()
638 sector_t first_bad; in read_balance() local
656 &first_bad, &bad_sectors)) { in read_balance()
657 if (first_bad <= this_sector) in read_balance()
660 best_good_sectors = first_bad - this_sector; in read_balance()
672 &first_bad, &bad_sectors)) { in read_balance()
676 if (first_bad <= this_sector) { in read_balance()
681 bad_sectors -= (this_sector - first_bad); in read_balance()
688 sector_t good_sectors = first_bad - this_sector; in read_balance()
1402 sector_t first_bad; in raid1_write_request() local
1407 &first_bad, &bad_sectors); in raid1_write_request()
1415 if (is_bad && first_bad <= r1_bio->sector) { in raid1_write_request()
1417 bad_sectors -= (r1_bio->sector - first_bad); in raid1_write_request()
1437 int good_sectors = first_bad - r1_bio->sector; in raid1_write_request()
1945 sector_t first_bad; in end_sync_write() local
1957 &first_bad, &bad_sectors) && in end_sync_write()
1961 &first_bad, &bad_sectors) in end_sync_write()
2274 sector_t first_bad; in fix_read_error() local
2284 &first_bad, &bad_sectors) == 0) { in fix_read_error()
2760 sector_t first_bad = MaxSector; in raid1_sync_request() local
2764 &first_bad, &bad_sectors)) { in raid1_sync_request()
2765 if (first_bad > sector_nr) in raid1_sync_request()
2766 good_sectors = first_bad - sector_nr; in raid1_sync_request()
2768 bad_sectors -= (sector_nr - first_bad); in raid1_sync_request()
2774 if (sector_nr < first_bad) { in raid1_sync_request()