Lines Matching refs:BB_END
543 ((BB_END(p[behind]) - s) <= BB_MAX_LEN) && in can_merge_behind()
586 (s < BB_END(p[prev]) || in can_merge_front()
587 (s == BB_END(p[prev]) && (BB_LEN(p[prev]) < BB_MAX_LEN)))) in can_merge_front()
604 WARN_ON(s > BB_END(p[prev])); in front_merge()
606 if (s < BB_END(p[prev])) { in front_merge()
607 merged = min_t(sector_t, sectors, BB_END(p[prev]) - s); in front_merge()
611 merged > (BB_OFFSET(p[prev + 1]) - BB_END(p[prev]))) { in front_merge()
612 merged = BB_OFFSET(p[prev + 1]) - BB_END(p[prev]); in front_merge()
640 (BB_END(p[prev - 1]) == BB_OFFSET(p[prev])) && in can_combine_front()
677 bad->start < BB_END(p[front])) in overlap_front()
729 if (BB_END(p[prev]) <= (bad->start + bad->len)) { in can_front_overwrite()
730 len = BB_END(p[prev]) - bad->start; in can_front_overwrite()
765 sector_t orig_end = BB_END(p[prev]); in front_overwrite()
780 orig_end - BB_END(p[prev]), in front_overwrite()
808 p[prev + 2] = BB_MAKE(BB_END(p[prev + 1]), in front_overwrite()
809 orig_end - BB_END(p[prev + 1]), in front_overwrite()
957 BB_END(p[prev]) - s, sectors); in _badblocks_set()
987 ((s + sectors) >= BB_END(p[prev + 1]))) { in _badblocks_set()
988 len = BB_END(p[prev + 1]) - s; in _badblocks_set()
1027 BB_END(p[prev]) == BB_OFFSET(p[prev + 1]) && in _badblocks_set()
1097 if (BB_END(p[prev]) <= (s + sectors)) { in front_clear()
1098 cleared = BB_END(p[prev]) - s; in front_clear()
1120 u64 end = BB_END(p[prev]); in front_splitting_clear()
1208 (BB_END(p[prev]) > (bad.start + sectors))) { in _badblocks_clear()
1215 (BB_END(p[prev]) > (bad.start + bad.len))) { in _badblocks_clear()
1328 if (BB_END(p[prev]) >= (s + sectors)) in _badblocks_check()
1331 len = BB_END(p[prev]) - s; in _badblocks_check()