Home
last modified time | relevance | path

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

/openbmc/linux/drivers/md/
H A Draid1.c500 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 …]
H A Draid10.c520 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 …]
H A Dmd.h220 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()
H A Draid5.c1220 sector_t first_bad; in ops_run_io() local
1223 &first_bad, &bad_sectors); in ops_run_io()
2889 sector_t first_bad; in raid5_end_write_request() local
2924 &first_bad, &bad_sectors)) in raid5_end_write_request()
2936 &first_bad, &bad_sectors)) { in raid5_end_write_request()
4713 sector_t first_bad; in analyse_stripe() local
4759 &first_bad, &bad_sectors)) in analyse_stripe()
4773 &first_bad, &bad_sectors); in analyse_stripe()
5504 sector_t sector, end_sector, first_bad; in raid5_read_one_chunk() local
5536 if (is_badblock(rdev, sector, bio_sectors(raid_bio), &first_bad, in raid5_read_one_chunk()
/openbmc/linux/fs/xfs/
H A 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 …]
/openbmc/linux/drivers/nvdimm/
H A Dpfn_devs.c371 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()
H A Dpmem.c251 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()
H A Dnd.h676 sector_t first_bad; in is_bad_pmem() local
679 return !!badblocks_check(bb, sector, len / 512, &first_bad, in is_bad_pmem()
/openbmc/linux/include/linux/
H A Dbadblocks.h45 sector_t *first_bad, int *bad_sectors);
/openbmc/linux/block/
H A Dbadblocks.c54 sector_t *first_bad, int *bad_sectors) in badblocks_check() argument
113 *first_bad = BB_OFFSET(p[lo]); in badblocks_check()
/openbmc/linux/drivers/block/null_blk/
H A Dmain.c1385 sector_t first_bad; in null_handle_badblocks() local
1388 if (badblocks_check(bb, sector, nr_sectors, &first_bad, &bad_sectors)) in null_handle_badblocks()