/linux-6.6.21/drivers/md/ |
D | raid1.c | 500 sector_t first_bad; in raid1_end_write_request() local 519 &first_bad, &bad_sectors) && !discard_error) { in raid1_end_write_request() 640 sector_t first_bad; in read_balance() local 658 &first_bad, &bad_sectors)) { in read_balance() 659 if (first_bad <= this_sector) in read_balance() 662 best_good_sectors = first_bad - this_sector; in read_balance() 674 &first_bad, &bad_sectors)) { in read_balance() 678 if (first_bad <= this_sector) { in read_balance() 683 bad_sectors -= (this_sector - first_bad); in read_balance() 690 sector_t good_sectors = first_bad - this_sector; in read_balance() [all …]
|
D | raid10.c | 520 sector_t first_bad; in raid10_end_write_request() local 539 &first_bad, &bad_sectors) && !discard_error) { in raid10_end_write_request() 769 sector_t first_bad; in read_balance() local 799 &first_bad, &bad_sectors)) { in read_balance() 803 if (first_bad <= dev_sector) { in read_balance() 808 bad_sectors -= (dev_sector - first_bad); in read_balance() 815 first_bad - dev_sector; in read_balance() 1368 sector_t first_bad; in wait_blocked_dev() local 1381 &first_bad, &bad_sectors); in wait_blocked_dev() 1498 sector_t first_bad; in raid10_write_request() local [all …]
|
D | md.h | 220 sector_t *first_bad, int *bad_sectors) in is_badblock() argument 225 first_bad, bad_sectors); in is_badblock() 227 *first_bad -= rdev->data_offset; in is_badblock()
|
D | raid5.c | 1221 sector_t first_bad; in ops_run_io() local 1224 &first_bad, &bad_sectors); in ops_run_io() 2890 sector_t first_bad; in raid5_end_write_request() local 2925 &first_bad, &bad_sectors)) in raid5_end_write_request() 2937 &first_bad, &bad_sectors)) { in raid5_end_write_request() 4714 sector_t first_bad; in analyse_stripe() local 4760 &first_bad, &bad_sectors)) in analyse_stripe() 4774 &first_bad, &bad_sectors); in analyse_stripe() 5505 sector_t sector, end_sector, first_bad; in raid5_read_one_chunk() local 5537 if (is_badblock(rdev, sector, bio_sectors(raid_bio), &first_bad, in raid5_read_one_chunk()
|
/linux-6.6.21/fs/xfs/ |
D | xfs_log_recover.c | 943 xfs_daddr_t first_bad; in xlog_verify_tail() local 971 first_bad = 0; in xlog_verify_tail() 973 XLOG_RECOVER_CRCPASS, &first_bad); in xlog_verify_tail() 974 while ((error == -EFSBADCRC || error == -EFSCORRUPTED) && first_bad) { in xlog_verify_tail() 981 tail_distance = xlog_tail_distance(log, head_blk, first_bad); in xlog_verify_tail() 986 error = xlog_seek_logrec_hdr(log, head_blk, first_bad, 2, in xlog_verify_tail() 992 first_bad = 0; in xlog_verify_tail() 994 XLOG_RECOVER_CRCPASS, &first_bad); in xlog_verify_tail() 1031 xfs_daddr_t first_bad; in xlog_verify_head() local 1059 XLOG_RECOVER_CRCPASS, &first_bad); in xlog_verify_head() [all …]
|
/linux-6.6.21/include/linux/ |
D | badblocks.h | 45 sector_t *first_bad, int *bad_sectors);
|
/linux-6.6.21/drivers/nvdimm/ |
D | pfn_devs.c | 371 sector_t first_bad, meta_start; in nd_pfn_clear_memmap_errors() local 395 meta_num, &first_bad, &num_bad); in nd_pfn_clear_memmap_errors() 398 num_bad, first_bad); in nd_pfn_clear_memmap_errors() 400 + (first_bad << 9)) - nsio->res.start, in nd_pfn_clear_memmap_errors() 417 num_bad, first_bad); in nd_pfn_clear_memmap_errors()
|
D | pmem.c | 251 sector_t first_bad; in __pmem_direct_access() local 260 badblocks_check(bb, sector, num, &first_bad, &num_bad)) { in __pmem_direct_access() 272 PAGE_ALIGN((first_bad - sector) << SECTOR_SHIFT)); in __pmem_direct_access() 274 sector, nr_pages, first_bad, actual_nr); in __pmem_direct_access()
|
D | nd.h | 669 sector_t first_bad; in is_bad_pmem() local 672 return !!badblocks_check(bb, sector, len / 512, &first_bad, in is_bad_pmem()
|
/linux-6.6.21/block/ |
D | badblocks.c | 54 sector_t *first_bad, int *bad_sectors) in badblocks_check() argument 113 *first_bad = BB_OFFSET(p[lo]); in badblocks_check()
|
/linux-6.6.21/drivers/block/null_blk/ |
D | main.c | 1369 sector_t first_bad; in null_handle_badblocks() local 1372 if (badblocks_check(bb, sector, nr_sectors, &first_bad, &bad_sectors)) in null_handle_badblocks()
|