Lines Matching refs:first_bad
501 sector_t first_bad; in raid1_end_write_request() local
520 &first_bad, &bad_sectors) && !discard_error) { in raid1_end_write_request()
641 sector_t first_bad; in read_balance() local
659 &first_bad, &bad_sectors)) { in read_balance()
660 if (first_bad <= this_sector) in read_balance()
663 best_good_sectors = first_bad - this_sector; in read_balance()
675 &first_bad, &bad_sectors)) { in read_balance()
679 if (first_bad <= this_sector) { in read_balance()
684 bad_sectors -= (this_sector - first_bad); in read_balance()
691 sector_t good_sectors = first_bad - this_sector; in read_balance()
1428 sector_t first_bad; in raid1_write_request() local
1433 &first_bad, &bad_sectors); in raid1_write_request()
1441 if (is_bad && first_bad <= r1_bio->sector) { in raid1_write_request()
1443 bad_sectors -= (r1_bio->sector - first_bad); in raid1_write_request()
1463 int good_sectors = first_bad - r1_bio->sector; in raid1_write_request()
1967 sector_t first_bad; in end_sync_write() local
1979 &first_bad, &bad_sectors) && in end_sync_write()
1983 &first_bad, &bad_sectors) in end_sync_write()
2294 sector_t first_bad; in fix_read_error() local
2304 &first_bad, &bad_sectors) == 0) { in fix_read_error()
2778 sector_t first_bad = MaxSector; in raid1_sync_request() local
2782 &first_bad, &bad_sectors)) { in raid1_sync_request()
2783 if (first_bad > sector_nr) in raid1_sync_request()
2784 good_sectors = first_bad - sector_nr; in raid1_sync_request()
2786 bad_sectors -= (sector_nr - first_bad); in raid1_sync_request()
2792 if (sector_nr < first_bad) { in raid1_sync_request()