Home
last modified time | relevance | path

Searched refs:bad_sectors (Results 1 – 5 of 5) sorted by relevance

/drivers/md/
Draid1.c497 int bad_sectors; in raid1_end_write_request() local
515 &first_bad, &bad_sectors) && !discard_error) { in raid1_end_write_request()
637 int bad_sectors; in read_balance() local
654 &first_bad, &bad_sectors)) { in read_balance()
670 &first_bad, &bad_sectors)) { in read_balance()
679 bad_sectors -= (this_sector - first_bad); in read_balance()
680 if (choose_first && sectors > bad_sectors) in read_balance()
681 sectors = bad_sectors; in read_balance()
1394 int bad_sectors; in raid1_write_request() local
1398 &first_bad, &bad_sectors); in raid1_write_request()
[all …]
Draid10.c495 int bad_sectors; in raid10_end_write_request() local
513 &first_bad, &bad_sectors) && !discard_error) { in raid10_end_write_request()
744 int bad_sectors; in read_balance() local
773 &first_bad, &bad_sectors)) { in read_balance()
782 bad_sectors -= (dev_sector - first_bad); in read_balance()
783 if (!do_balance && sectors > bad_sectors) in read_balance()
784 sectors = bad_sectors; in read_balance()
1395 int bad_sectors; in raid10_write_request() local
1399 &first_bad, &bad_sectors); in raid10_write_request()
1411 bad_sectors -= (dev_sector - first_bad); in raid10_write_request()
[all …]
Dmd.h219 sector_t *first_bad, int *bad_sectors) in is_badblock() argument
224 first_bad, bad_sectors); in is_badblock()
Draid5.c1137 int bad_sectors; in ops_run_io() local
1139 &first_bad, &bad_sectors); in ops_run_io()
2801 int bad_sectors; in raid5_end_write_request() local
2836 &first_bad, &bad_sectors)) in raid5_end_write_request()
2848 &first_bad, &bad_sectors)) { in raid5_end_write_request()
4602 int bad_sectors; in analyse_stripe() local
4647 &first_bad, &bad_sectors)) in analyse_stripe()
4661 &first_bad, &bad_sectors); in analyse_stripe()
5443 int bad_sectors; in raid5_read_one_chunk() local
5452 &first_bad, &bad_sectors)) { in raid5_read_one_chunk()
/drivers/block/null_blk/
Dmain.c1257 int bad_sectors; in null_handle_badblocks() local
1259 if (badblocks_check(bb, sector, nr_sectors, &first_bad, &bad_sectors)) in null_handle_badblocks()