Lines Matching refs:bad_sectors
502 int bad_sectors; in raid1_end_write_request() local
520 &first_bad, &bad_sectors) && !discard_error) { in raid1_end_write_request()
642 int bad_sectors; in read_balance() local
659 &first_bad, &bad_sectors)) { in read_balance()
675 &first_bad, &bad_sectors)) { in read_balance()
684 bad_sectors -= (this_sector - first_bad); in read_balance()
685 if (choose_first && sectors > bad_sectors) in read_balance()
686 sectors = bad_sectors; in read_balance()
1429 int bad_sectors; in raid1_write_request() local
1433 &first_bad, &bad_sectors); in raid1_write_request()
1443 bad_sectors -= (r1_bio->sector - first_bad); in raid1_write_request()
1444 if (bad_sectors < max_sectors) in raid1_write_request()
1448 max_sectors = bad_sectors; in raid1_write_request()
1968 int bad_sectors; in end_sync_write() local
1979 &first_bad, &bad_sectors) && in end_sync_write()
1983 &first_bad, &bad_sectors) in end_sync_write()
2295 int bad_sectors; in fix_read_error() local
2304 &first_bad, &bad_sectors) == 0) { in fix_read_error()
2779 int bad_sectors; in raid1_sync_request() local
2782 &first_bad, &bad_sectors)) { in raid1_sync_request()
2786 bad_sectors -= (sector_nr - first_bad); in raid1_sync_request()
2788 min_bad > bad_sectors) in raid1_sync_request()
2789 min_bad = bad_sectors; in raid1_sync_request()