Lines Matching refs:br_startoff

123 	cur->bc_rec.b.br_startoff = 0;
303 ASSERT(be64_to_cpu(prevp->br_startoff) <
304 be64_to_cpu(keyp->br_startoff));
524 ASSERT(mval[i].br_startoff >= bno);
526 ASSERT(mval[i].br_startoff + mval[i].br_blockcount <=
529 ASSERT(mval[i].br_startoff < bno + len);
530 ASSERT(mval[i].br_startoff + mval[i].br_blockcount >
534 mval[i - 1].br_startoff + mval[i - 1].br_blockcount ==
535 mval[i].br_startoff);
728 kp->br_startoff = cpu_to_be64(xfs_bmbt_disk_get_startoff(arp));
863 rec.br_startoff = 0;
1140 irec->br_startoff, irec->br_startblock, irec->br_blockcount,
1289 if (got.br_startoff >= lowest + len &&
1290 got.br_startoff - max >= len)
1292 lastaddr = got.br_startoff + got.br_blockcount;
1397 bma->aeof = bma->offset >= rec.br_startoff + rec.br_blockcount ||
1398 (bma->offset >= rec.br_startoff &&
1433 *last_block = rec.br_startoff + rec.br_blockcount;
1479 new_endoff = new->br_startoff + new->br_blockcount;
1481 ASSERT(PREV.br_startoff <= new->br_startoff);
1482 ASSERT(PREV.br_startoff + PREV.br_blockcount >= new_endoff);
1491 if (PREV.br_startoff == new->br_startoff)
1493 if (PREV.br_startoff + PREV.br_blockcount == new_endoff)
1507 LEFT.br_startoff + LEFT.br_blockcount == new->br_startoff &&
1525 new_endoff == RIGHT.br_startoff &&
1702 PREV.br_startoff += new->br_blockcount;
1770 PREV.br_startoff = new_endoff;
1784 RIGHT.br_startoff = new->br_startoff;
1894 RIGHT.br_startoff = new_endoff;
1896 PREV.br_startoff + PREV.br_blockcount - new_endoff;
1902 PREV.br_blockcount = new->br_startoff - PREV.br_startoff;
2046 new_endoff = new->br_startoff + new->br_blockcount;
2047 ASSERT(PREV.br_startoff <= new->br_startoff);
2048 ASSERT(PREV.br_startoff + PREV.br_blockcount >= new_endoff);
2054 if (PREV.br_startoff == new->br_startoff)
2056 if (PREV.br_startoff + PREV.br_blockcount == new_endoff)
2070 LEFT.br_startoff + LEFT.br_blockcount == new->br_startoff &&
2088 new_endoff == RIGHT.br_startoff &&
2288 PREV.br_startoff += new->br_blockcount;
2326 PREV.br_startoff += new->br_blockcount;
2368 RIGHT.br_startoff = new->br_startoff;
2453 PREV.br_blockcount = new->br_startoff - PREV.br_startoff;
2456 r[1].br_startoff = new_endoff;
2458 old.br_startoff + old.br_blockcount - new_endoff;
2605 left.br_startoff + left.br_blockcount == new->br_startoff &&
2610 new->br_startoff + new->br_blockcount == right.br_startoff &&
2673 right.br_startoff = new->br_startoff;
2754 left.br_startoff + left.br_blockcount == new->br_startoff &&
2761 new->br_startoff + new->br_blockcount == right.br_startoff &&
2860 right.br_startoff = new->br_startoff;
2984 (orig_off >= gotp->br_startoff) &&
2985 (orig_end <= gotp->br_startoff + gotp->br_blockcount)) {
3023 if (prevp->br_startoff != NULLFILEOFF) {
3025 prevo = prevp->br_startoff;
3027 prevo = prevp->br_startoff + prevp->br_blockcount;
3040 if (!eof && gotp->br_startoff != NULLFILEOFF) {
3043 nexto = gotp->br_startoff + gotp->br_blockcount;
3045 nexto = gotp->br_startoff;
3113 if (!eof && gotp->br_startoff != NULLFILEOFF)
3114 ASSERT(align_off + align_alen <= gotp->br_startoff);
3115 if (prevp->br_startoff != NULLFILEOFF)
3116 ASSERT(align_off >= prevp->br_startoff + prevp->br_blockcount);
3149 if (ap->eof && ap->prev.br_startoff != NULLFILEOFF &&
3158 (ap->prev.br_startoff + ap->prev.br_blockcount);
3179 if (ap->prev.br_startoff != NULLFILEOFF &&
3188 (ap->prev.br_startoff +
3218 adjust = gotdiff = ap->got.br_startoff - ap->offset;
3832 if (irec->br_startoff + irec->br_blockcount <= bno ||
3833 irec->br_startoff >= end) {
3838 if (irec->br_startoff < bno) {
3839 distance = bno - irec->br_startoff;
3845 irec->br_startoff += distance;
3849 if (end < irec->br_startoff + irec->br_blockcount) {
3850 distance = irec->br_startoff + irec->br_blockcount - end;
3870 got->br_startoff + got->br_blockcount <= obno) {
3881 mval->br_startoff = *bno;
3886 (*bno - got->br_startoff);
3895 got->br_blockcount - (*bno - got->br_startoff));
3917 ((mval->br_startoff + mval->br_blockcount) <= end));
3919 (mval->br_startoff < obno));
3921 *bno = mval->br_startoff + mval->br_blockcount;
3923 if (*n > 0 && mval->br_startoff == mval[-1].br_startoff) {
3936 ASSERT(mval->br_startoff ==
3937 mval[-1].br_startoff + mval[-1].br_blockcount);
3942 mval->br_startoff ==
3943 mval[-1].br_startoff + mval[-1].br_blockcount) {
3947 ((mval->br_startoff + mval->br_blockcount) <=
4010 got.br_startoff = end;
4011 if (got.br_startoff > bno) {
4013 mval->br_startoff = bno;
4016 XFS_FILBLKS_MIN(len, got.br_startoff - bno);
4078 alen = XFS_FILBLKS_MIN(alen, got->br_startoff - aoff);
4088 prev.br_startoff = NULLFILEOFF;
4123 got->br_startoff = aoff;
4205 bma->offset = bma->got.br_startoff;
4207 bma->prev.br_startoff = NULLFILEOFF;
4212 bma->got.br_startoff - bma->offset);
4249 bma->got.br_startoff = bma->offset;
4275 ASSERT(bma->got.br_startoff <= bma->offset);
4276 ASSERT(bma->got.br_startoff + bma->got.br_blockcount >=
4487 bma.prev.br_startoff = NULLFILEOFF;
4497 if (eof || bma.got.br_startoff > bno) {
4642 bma.got.br_startoff > offset_fsb) {
4667 bma.offset = bma.got.br_startoff;
4690 bma.prev.br_startoff = NULLFILEOFF;
4775 ASSERT(got.br_startoff > bno);
4776 ASSERT(got.br_startoff - bno >= len);
4785 got.br_startoff = bno;
4919 del_endoff = del->br_startoff + del->br_blockcount;
4920 got_endoff = got->br_startoff + got->br_blockcount;
4925 ASSERT(got->br_startoff <= del->br_startoff);
4942 if (got->br_startoff == del->br_startoff)
4959 got->br_startoff = del_endoff;
4986 got->br_blockcount = del->br_startoff - got->br_startoff;
4998 new.br_startoff = del_endoff;
5037 del_endoff = del->br_startoff + del->br_blockcount;
5038 got_endoff = got->br_startoff + got->br_blockcount;
5041 ASSERT(got->br_startoff <= del->br_startoff);
5045 if (got->br_startoff == del->br_startoff)
5062 got->br_startoff = del_endoff;
5078 got->br_blockcount = del->br_startoff - got->br_startoff;
5080 new.br_startoff = del_endoff;
5132 ASSERT(got.br_startoff <= del->br_startoff);
5133 del_endoff = del->br_startoff + del->br_blockcount;
5134 got_endoff = got.br_startoff + got.br_blockcount;
5150 del->br_startoff > got.br_startoff && del_endoff < got_endoff)
5181 if (got.br_startoff == del->br_startoff)
5211 got.br_startoff = del_endoff;
5244 got.br_blockcount = del->br_startoff - got.br_startoff;
5247 new.br_startoff = del_endoff;
5434 if (got.br_startoff > end &&
5444 got.br_startoff + got.br_blockcount - 1);
5454 if (got.br_startoff < start) {
5455 del.br_startoff = start;
5456 del.br_blockcount -= start - got.br_startoff;
5458 del.br_startblock += start - got.br_startoff;
5460 if (del.br_startoff + del.br_blockcount > end + 1)
5461 del.br_blockcount = end + 1 - del.br_startoff;
5484 if (end < got.br_startoff &&
5502 del.br_startoff += del.br_blockcount - mod;
5526 del.br_startoff += off;
5528 } else if (del.br_startoff == start &&
5537 if (got.br_startoff > end &&
5560 del.br_startoff - mod,
5561 prev.br_startoff);
5562 mod = unwrite_start - prev.br_startoff;
5563 prev.br_startoff = unwrite_start;
5599 end = del.br_startoff - 1;
5606 (got.br_startoff > end &&
5687 startoff = got->br_startoff - shift;
5693 if ((left->br_startoff + left->br_blockcount != startoff) ||
5792 new.br_startoff = left->br_startoff + left->br_blockcount;
5814 got->br_startoff = startoff;
5887 new_startoff = got.br_startoff - offset_shift_fsb;
5889 if (new_startoff < prev.br_startoff + prev.br_blockcount) {
5903 if (got.br_startoff < offset_shift_fsb) {
5920 *next_fsb = got.br_startoff;
5947 if (!error && !is_empty && got.br_startoff >= off &&
5948 ((got.br_startoff + shift) & BMBT_STARTOFF_MASK) < got.br_startoff)
5995 stop_fsb > got.br_startoff) {
6011 if (XFS_IS_CORRUPT(mp, stop_fsb > got.br_startoff)) {
6017 new_startoff = got.br_startoff + offset_shift_fsb;
6019 if (new_startoff + got.br_blockcount > next.br_startoff) {
6040 stop_fsb >= got.br_startoff + got.br_blockcount) {
6045 *next_fsb = got.br_startoff;
6096 got.br_startoff >= split_fsb)
6099 gotblkcnt = split_fsb - got.br_startoff;
6100 new.br_startoff = split_fsb;
6251 error = xfs_bmapi_remap(tp, bi->bi_owner, bmap->br_startoff,
6257 error = __xfs_bunmapi(tp, bi->bi_owner, bmap->br_startoff,
6278 if (!xfs_verify_fileext(mp, irec->br_startoff, irec->br_blockcount))