Searched refs:first_bad (Results 1 – 7 of 7) sorted by relevance
/drivers/md/ |
D | raid1.c | 498 sector_t first_bad; in raid1_end_write_request() local 517 &first_bad, &bad_sectors) && !discard_error) { in raid1_end_write_request() 638 sector_t first_bad; in read_balance() local 656 &first_bad, &bad_sectors)) { in read_balance() 657 if (first_bad <= this_sector) in read_balance() 660 best_good_sectors = first_bad - this_sector; in read_balance() 672 &first_bad, &bad_sectors)) { in read_balance() 676 if (first_bad <= this_sector) { in read_balance() 681 bad_sectors -= (this_sector - first_bad); in read_balance() 688 sector_t good_sectors = first_bad - this_sector; in read_balance() [all …]
|
D | raid10.c | 495 sector_t first_bad; in raid10_end_write_request() local 514 &first_bad, &bad_sectors) && !discard_error) { in raid10_end_write_request() 744 sector_t first_bad; in read_balance() local 774 &first_bad, &bad_sectors)) { in read_balance() 778 if (first_bad <= dev_sector) { in read_balance() 783 bad_sectors -= (dev_sector - first_bad); in read_balance() 790 first_bad - dev_sector; in read_balance() 1365 sector_t first_bad; in wait_blocked_dev() local 1378 &first_bad, &bad_sectors); in wait_blocked_dev() 1495 sector_t first_bad; in raid10_write_request() local [all …]
|
D | md.h | 219 sector_t *first_bad, int *bad_sectors) in is_badblock() argument 224 first_bad, bad_sectors); in is_badblock() 226 *first_bad -= rdev->data_offset; in is_badblock()
|
D | raid5.c | 1137 sector_t first_bad; in ops_run_io() local 1140 &first_bad, &bad_sectors); in ops_run_io() 2801 sector_t first_bad; in raid5_end_write_request() local 2837 &first_bad, &bad_sectors)) in raid5_end_write_request() 2849 &first_bad, &bad_sectors)) { in raid5_end_write_request() 4602 sector_t first_bad; in analyse_stripe() local 4648 &first_bad, &bad_sectors)) in analyse_stripe() 4662 &first_bad, &bad_sectors); in analyse_stripe() 5399 sector_t sector, end_sector, first_bad; in raid5_read_one_chunk() local 5432 if (is_badblock(rdev, sector, bio_sectors(raid_bio), &first_bad, in raid5_read_one_chunk()
|
/drivers/nvdimm/ |
D | pfn_devs.c | 367 sector_t first_bad, meta_start; in nd_pfn_clear_memmap_errors() local 391 meta_num, &first_bad, &num_bad); in nd_pfn_clear_memmap_errors() 394 num_bad, first_bad); in nd_pfn_clear_memmap_errors() 396 + (first_bad << 9)) - nsio->res.start, in nd_pfn_clear_memmap_errors() 413 num_bad, first_bad); in nd_pfn_clear_memmap_errors()
|
D | nd.h | 554 sector_t first_bad; in is_bad_pmem() local 557 return !!badblocks_check(bb, sector, len / 512, &first_bad, in is_bad_pmem()
|
/drivers/block/null_blk/ |
D | main.c | 1267 sector_t first_bad; in null_handle_badblocks() local 1270 if (badblocks_check(bb, sector, nr_sectors, &first_bad, &bad_sectors)) in null_handle_badblocks()
|