/Linux-v5.15/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 766 &first_bad, &bad_sectors)) { in read_balance() 770 if (first_bad <= dev_sector) { in read_balance() 775 bad_sectors -= (dev_sector - first_bad); in read_balance() 782 first_bad - dev_sector; in read_balance() 1307 sector_t first_bad; in wait_blocked_dev() local 1320 &first_bad, &bad_sectors); in wait_blocked_dev() 1434 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 | 1136 sector_t first_bad; in ops_run_io() local 1139 &first_bad, &bad_sectors); in ops_run_io() 2800 sector_t first_bad; 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() 4604 sector_t first_bad; in analyse_stripe() local 4650 &first_bad, &bad_sectors)) in analyse_stripe() 4664 &first_bad, &bad_sectors); in analyse_stripe() 5401 sector_t sector, end_sector, first_bad; in raid5_read_one_chunk() local 5434 if (is_badblock(rdev, sector, bio_sectors(raid_bio), &first_bad, in raid5_read_one_chunk()
|
/Linux-v5.15/fs/xfs/ |
D | xfs_log_recover.c | 950 xfs_daddr_t first_bad; in xlog_verify_tail() local 978 first_bad = 0; in xlog_verify_tail() 980 XLOG_RECOVER_CRCPASS, &first_bad); in xlog_verify_tail() 981 while ((error == -EFSBADCRC || error == -EFSCORRUPTED) && first_bad) { in xlog_verify_tail() 988 tail_distance = xlog_tail_distance(log, head_blk, first_bad); in xlog_verify_tail() 993 error = xlog_seek_logrec_hdr(log, head_blk, first_bad, 2, in xlog_verify_tail() 999 first_bad = 0; in xlog_verify_tail() 1001 XLOG_RECOVER_CRCPASS, &first_bad); in xlog_verify_tail() 1038 xfs_daddr_t first_bad; in xlog_verify_head() local 1066 XLOG_RECOVER_CRCPASS, &first_bad); in xlog_verify_head() [all …]
|
/Linux-v5.15/include/linux/ |
D | badblocks.h | 45 sector_t *first_bad, int *bad_sectors);
|
/Linux-v5.15/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()
|
/Linux-v5.15/block/ |
D | badblocks.c | 54 sector_t *first_bad, int *bad_sectors) in badblocks_check() argument 114 *first_bad = BB_OFFSET(p[lo]); in badblocks_check()
|
/Linux-v5.15/drivers/block/null_blk/ |
D | main.c | 1256 sector_t first_bad; in null_handle_badblocks() local 1259 if (badblocks_check(bb, sector, nr_sectors, &first_bad, &bad_sectors)) in null_handle_badblocks()
|