Lines Matching refs:bad_sectors
499 int bad_sectors; in raid1_end_write_request() local
517 &first_bad, &bad_sectors) && !discard_error) { in raid1_end_write_request()
639 int bad_sectors; in read_balance() local
656 &first_bad, &bad_sectors)) { in read_balance()
672 &first_bad, &bad_sectors)) { in read_balance()
681 bad_sectors -= (this_sector - first_bad); in read_balance()
682 if (choose_first && sectors > bad_sectors) in read_balance()
683 sectors = bad_sectors; in read_balance()
1403 int bad_sectors; in raid1_write_request() local
1407 &first_bad, &bad_sectors); in raid1_write_request()
1417 bad_sectors -= (r1_bio->sector - first_bad); in raid1_write_request()
1418 if (bad_sectors < max_sectors) in raid1_write_request()
1422 max_sectors = bad_sectors; in raid1_write_request()
1946 int bad_sectors; in end_sync_write() local
1957 &first_bad, &bad_sectors) && in end_sync_write()
1961 &first_bad, &bad_sectors) in end_sync_write()
2275 int bad_sectors; in fix_read_error() local
2284 &first_bad, &bad_sectors) == 0) { in fix_read_error()
2761 int bad_sectors; in raid1_sync_request() local
2764 &first_bad, &bad_sectors)) { in raid1_sync_request()
2768 bad_sectors -= (sector_nr - first_bad); in raid1_sync_request()
2770 min_bad > bad_sectors) in raid1_sync_request()
2771 min_bad = bad_sectors; in raid1_sync_request()