Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/md/
Draid1-10.c249 sector_t first_bad; in raid1_check_read_range() local
253 if (!is_badblock(rdev, this_sector, *len, &first_bad, &bad_sectors)) in raid1_check_read_range()
260 if (first_bad > this_sector) in raid1_check_read_range()
261 return first_bad - this_sector; in raid1_check_read_range()
264 if (this_sector + *len <= first_bad + bad_sectors) in raid1_check_read_range()
273 *len = first_bad + bad_sectors - this_sector; in raid1_check_read_range()
Dmd.h270 sector_t *first_bad, int *bad_sectors) in is_badblock() argument
275 first_bad, bad_sectors); in is_badblock()
277 *first_bad -= rdev->data_offset; in is_badblock()
286 sector_t first_bad; in rdev_has_badblock() local
289 return is_badblock(rdev, s, sectors, &first_bad, &bad_sectors); in rdev_has_badblock()
Draid10.c754 sector_t first_bad; in read_balance() local
777 &first_bad, &bad_sectors)) { in read_balance()
781 if (first_bad <= dev_sector) { in read_balance()
786 bad_sectors -= (dev_sector - first_bad); in read_balance()
793 first_bad - dev_sector; in read_balance()
1438 sector_t first_bad; in raid10_write_request() local
1444 &first_bad, &bad_sectors); in raid10_write_request()
1445 if (is_bad && first_bad <= dev_sector) { in raid10_write_request()
1447 bad_sectors -= (dev_sector - first_bad); in raid10_write_request()
1464 int good_sectors = first_bad - dev_sector; in raid10_write_request()
[all …]
Draid1.c1503 sector_t first_bad; in raid1_write_request() local
1508 &first_bad, &bad_sectors); in raid1_write_request()
1516 if (is_bad && first_bad <= r1_bio->sector) { in raid1_write_request()
1518 bad_sectors -= (r1_bio->sector - first_bad); in raid1_write_request()
1538 int good_sectors = first_bad - r1_bio->sector; in raid1_write_request()
2863 sector_t first_bad = MaxSector; in raid1_sync_request() local
2867 &first_bad, &bad_sectors)) { in raid1_sync_request()
2868 if (first_bad > sector_nr) in raid1_sync_request()
2869 good_sectors = first_bad - sector_nr; in raid1_sync_request()
2871 bad_sectors -= (sector_nr - first_bad); in raid1_sync_request()
[all …]
/linux-6.12.1/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.12.1/drivers/nvdimm/
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()
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()
Dnd.h668 sector_t first_bad; in is_bad_pmem() local
671 return !!badblocks_check(bb, sector, len / 512, &first_bad, in is_bad_pmem()
/linux-6.12.1/include/linux/
Dbadblocks.h52 sector_t *first_bad, int *bad_sectors);
/linux-6.12.1/block/
Dbadblocks.c1275 sector_t *first_bad, int *bad_sectors) in _badblocks_check() argument
1334 *first_bad = BB_OFFSET(p[prev]); in _badblocks_check()
1408 sector_t *first_bad, int *bad_sectors) in badblocks_check() argument
1410 return _badblocks_check(bb, s, sectors, first_bad, bad_sectors); in badblocks_check()
/linux-6.12.1/drivers/block/null_blk/
Dmain.c1295 sector_t first_bad; in null_handle_badblocks() local
1298 if (badblocks_check(bb, sector, nr_sectors, &first_bad, &bad_sectors)) in null_handle_badblocks()