Lines Matching full:bad
13 * correct the read error. To keep track of bad blocks on a per-bio
17 /* When we successfully write to a known bad-block, we need to remove the
18 * bad-block marking which must be done from process context. So we record
229 * raid1_check_read_range() - check a given read range for bad blocks,
237 * 1) If there are no bad blocks in the range, @len is returned;
238 * 2) If the range are all bad blocks, 0 is returned;
239 * 3) If there are partial bad blocks:
240 * - If the bad block range starts after @this_sector, the length of first
242 * - If the bad block range starts before @this_sector, 0 is returned and
252 /* no bad block overlap */ in raid1_check_read_range()
257 * bad block range starts offset into our range so we can return the in raid1_check_read_range()
258 * number of sectors before the bad blocks start. in raid1_check_read_range()
263 /* read range is fully consumed by bad blocks. */ in raid1_check_read_range()
268 * final case, bad block range starts before or at the start of our in raid1_check_read_range()