Lines Matching refs:bad_sectors
523 int bad_sectors; in raid10_end_write_request() local
541 &first_bad, &bad_sectors) && !discard_error) { in raid10_end_write_request()
772 int bad_sectors; in read_balance() local
793 &first_bad, &bad_sectors)) { in read_balance()
802 bad_sectors -= (dev_sector - first_bad); in read_balance()
803 if (!do_balance && sectors > bad_sectors) in read_balance()
804 sectors = bad_sectors; in read_balance()
1363 int bad_sectors; in wait_blocked_dev() local
1374 &first_bad, &bad_sectors); in wait_blocked_dev()
1495 int bad_sectors; in raid10_write_request() local
1499 &first_bad, &bad_sectors); in raid10_write_request()
1502 bad_sectors -= (dev_sector - first_bad); in raid10_write_request()
1503 if (bad_sectors < max_sectors) in raid10_write_request()
1507 max_sectors = bad_sectors; in raid10_write_request()
2346 int bad_sectors; in end_sync_write() local
2370 &first_bad, &bad_sectors)) in end_sync_write()
2686 int bad_sectors; in r10_sync_page_io() local
2688 if (is_badblock(rdev, sector, sectors, &first_bad, &bad_sectors) in r10_sync_page_io()
2757 int bad_sectors; in fix_read_error() local
2765 &first_bad, &bad_sectors) == 0) { in fix_read_error()
3521 int bad_sectors; in raid10_sync_request() local
3530 &first_bad, &bad_sectors)) { in raid10_sync_request()
3534 bad_sectors -= (sector in raid10_sync_request()
3536 if (max_sync > bad_sectors) in raid10_sync_request()
3537 max_sync = bad_sectors; in raid10_sync_request()
3713 int bad_sectors; in raid10_sync_request() local
3729 &first_bad, &bad_sectors)) { in raid10_sync_request()
3733 bad_sectors -= (sector - first_bad); in raid10_sync_request()
3734 if (max_sync > bad_sectors) in raid10_sync_request()
3735 max_sync = bad_sectors; in raid10_sync_request()