Lines Matching refs: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)
541 if ((s < BB_OFFSET(p[behind])) &&
542 ((s + sectors) >= BB_OFFSET(p[behind])) &&
543 ((BB_END(p[behind]) - s) <= BB_MAX_LEN) &&
544 BB_ACK(p[behind]) == bad->ack)
551 * (from the bad table) indexed by 'behind'. The return value is merged
555 int behind)
562 WARN_ON(s >= BB_OFFSET(p[behind]));
563 WARN_ON((s + sectors) < BB_OFFSET(p[behind]));
565 if (s < BB_OFFSET(p[behind])) {
566 merged = BB_OFFSET(p[behind]) - s;
567 p[behind] = BB_MAKE(s, BB_LEN(p[behind]) + merged, bad->ack);
569 WARN_ON((BB_LEN(p[behind]) + merged) >= BB_MAX_LEN);
684 * overlapped with the bad range (from bad table) indexed by 'behind'.
687 int behind)
691 if (bad->start < BB_OFFSET(p[behind]) &&
692 (bad->start + bad->len) > BB_OFFSET(p[behind]))
1237 /* Not front overlap, but behind overlap */
1341 /* Not front overlap, but behind overlap */