Lines Matching full:behind
290 * 6.3) Behind merge: If the already set bad blocks range E is behind the setting
307 * values are same, the setting range S can behind merges into range E. The
425 * 5.2) The already set bad block range is behind overlaopped with the clearing
532 * with the bad range (from the bad table) index by 'behind'.
535 struct badblocks_context *bad, int behind) in can_merge_behind() argument
541 if ((s < BB_OFFSET(p[behind])) && in can_merge_behind()
542 ((s + sectors) >= BB_OFFSET(p[behind])) && in can_merge_behind()
543 ((BB_END(p[behind]) - s) <= BB_MAX_LEN) && in can_merge_behind()
544 BB_ACK(p[behind]) == bad->ack) in can_merge_behind()
551 * (from the bad table) indexed by 'behind'. The return value is merged
555 int behind) in behind_merge()
562 WARN_ON(s >= BB_OFFSET(p[behind])); in behind_merge()
563 WARN_ON((s + sectors) < BB_OFFSET(p[behind])); in behind_merge()
565 if (s < BB_OFFSET(p[behind])) { in behind_merge()
566 merged = BB_OFFSET(p[behind]) - s; in behind_merge()
567 p[behind] = BB_MAKE(s, BB_LEN(p[behind]) + merged, bad->ack); in behind_merge()
569 WARN_ON((BB_LEN(p[behind]) + merged) >= BB_MAX_LEN); in behind_merge()
684 * overlapped with the bad range (from bad table) indexed by 'behind'.
687 int behind) in overlap_behind() argument
691 if (bad->start < BB_OFFSET(p[behind]) && in overlap_behind()
692 (bad->start + bad->len) > BB_OFFSET(p[behind])) in overlap_behind()
1237 /* Not front overlap, but behind overlap */ in _badblocks_clear()
1341 /* Not front overlap, but behind overlap */ in _badblocks_check()