Home
last modified time | relevance | path

Searched refs:first_bad (Results 1 – 11 of 11) sorted by relevance

/linux-6.1.9/drivers/md/
Draid1.c501 sector_t first_bad; in raid1_end_write_request() local
520 &first_bad, &bad_sectors) && !discard_error) { in raid1_end_write_request()
641 sector_t first_bad; in read_balance() local
659 &first_bad, &bad_sectors)) { in read_balance()
660 if (first_bad <= this_sector) in read_balance()
663 best_good_sectors = first_bad - this_sector; in read_balance()
675 &first_bad, &bad_sectors)) { in read_balance()
679 if (first_bad <= this_sector) { in read_balance()
684 bad_sectors -= (this_sector - first_bad); in read_balance()
691 sector_t good_sectors = first_bad - this_sector; in read_balance()
[all …]
Draid10.c522 sector_t first_bad; in raid10_end_write_request() local
541 &first_bad, &bad_sectors) && !discard_error) { in raid10_end_write_request()
771 sector_t first_bad; in read_balance() local
793 &first_bad, &bad_sectors)) { in read_balance()
797 if (first_bad <= dev_sector) { in read_balance()
802 bad_sectors -= (dev_sector - first_bad); in read_balance()
809 first_bad - dev_sector; in read_balance()
1361 sector_t first_bad; in wait_blocked_dev() local
1374 &first_bad, &bad_sectors); in wait_blocked_dev()
1493 sector_t first_bad; in raid10_write_request() local
[all …]
Dmd.h219 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()
Draid5.c1214 sector_t first_bad; in ops_run_io() local
1217 &first_bad, &bad_sectors); in ops_run_io()
2883 sector_t first_bad; in raid5_end_write_request() local
2918 &first_bad, &bad_sectors)) in raid5_end_write_request()
2930 &first_bad, &bad_sectors)) { in raid5_end_write_request()
4707 sector_t first_bad; in analyse_stripe() local
4753 &first_bad, &bad_sectors)) in analyse_stripe()
4767 &first_bad, &bad_sectors); in analyse_stripe()
5507 sector_t sector, end_sector, first_bad; in raid5_read_one_chunk() local
5540 if (is_badblock(rdev, sector, bio_sectors(raid_bio), &first_bad, in raid5_read_one_chunk()
/linux-6.1.9/fs/xfs/
Dxfs_log_recover.c943 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.1.9/include/linux/
Dbadblocks.h45 sector_t *first_bad, int *bad_sectors);
/linux-6.1.9/drivers/nvdimm/
Dpfn_devs.c369 sector_t first_bad, meta_start; in nd_pfn_clear_memmap_errors() local
393 meta_num, &first_bad, &num_bad); in nd_pfn_clear_memmap_errors()
396 num_bad, first_bad); in nd_pfn_clear_memmap_errors()
398 + (first_bad << 9)) - nsio->res.start, in nd_pfn_clear_memmap_errors()
415 num_bad, first_bad); in nd_pfn_clear_memmap_errors()
Dpmem.c272 sector_t first_bad; in __pmem_direct_access() local
281 badblocks_check(bb, sector, num, &first_bad, &num_bad)) { in __pmem_direct_access()
293 PAGE_ALIGN((first_bad - sector) << SECTOR_SHIFT)); in __pmem_direct_access()
295 sector, nr_pages, first_bad, actual_nr); in __pmem_direct_access()
Dnd.h669 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.1.9/block/
Dbadblocks.c54 sector_t *first_bad, int *bad_sectors) in badblocks_check() argument
113 *first_bad = BB_OFFSET(p[lo]); in badblocks_check()
/linux-6.1.9/drivers/block/null_blk/
Dmain.c1335 sector_t first_bad; in null_handle_badblocks() local
1338 if (badblocks_check(bb, sector, nr_sectors, &first_bad, &bad_sectors)) in null_handle_badblocks()