Searched refs:bad_sectors (Results 1 – 7 of 7) sorted by relevance
/linux-6.12.1/drivers/md/ |
D | raid1-10.c | 250 int bad_sectors; in raid1_check_read_range() local 253 if (!is_badblock(rdev, this_sector, *len, &first_bad, &bad_sectors)) 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()
|
D | md.h | 270 sector_t *first_bad, int *bad_sectors) in is_badblock() argument 275 first_bad, bad_sectors); in is_badblock() 287 int bad_sectors; in rdev_has_badblock() local 289 return is_badblock(rdev, s, sectors, &first_bad, &bad_sectors); in rdev_has_badblock()
|
D | raid10.c | 755 int bad_sectors; in read_balance() local 777 &first_bad, &bad_sectors)) { in read_balance() 786 bad_sectors -= (dev_sector - first_bad); in read_balance() 787 if (!do_balance && sectors > bad_sectors) in read_balance() 788 sectors = bad_sectors; in read_balance() 1440 int bad_sectors; in raid10_write_request() local 1444 &first_bad, &bad_sectors); in raid10_write_request() 1447 bad_sectors -= (dev_sector - first_bad); in raid10_write_request() 1448 if (bad_sectors < max_sectors) in raid10_write_request() 1452 max_sectors = bad_sectors; in raid10_write_request() [all …]
|
D | raid1.c | 1504 int bad_sectors; in raid1_write_request() local 1508 &first_bad, &bad_sectors); in raid1_write_request() 1518 bad_sectors -= (r1_bio->sector - first_bad); in raid1_write_request() 1519 if (bad_sectors < max_sectors) in raid1_write_request() 1523 max_sectors = bad_sectors; in raid1_write_request() 2864 int bad_sectors; in raid1_sync_request() local 2867 &first_bad, &bad_sectors)) { in raid1_sync_request() 2871 bad_sectors -= (sector_nr - first_bad); in raid1_sync_request() 2873 min_bad > bad_sectors) in raid1_sync_request() 2874 min_bad = bad_sectors; in raid1_sync_request()
|
/linux-6.12.1/include/linux/ |
D | badblocks.h | 52 sector_t *first_bad, int *bad_sectors);
|
/linux-6.12.1/block/ |
D | badblocks.c | 1275 sector_t *first_bad, int *bad_sectors) in _badblocks_check() argument 1335 *bad_sectors = BB_LEN(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/ |
D | main.c | 1296 int bad_sectors; in null_handle_badblocks() local 1298 if (badblocks_check(bb, sector, nr_sectors, &first_bad, &bad_sectors)) in null_handle_badblocks()
|