Lines Matching refs:br_startoff

115 	cur->bc_rec.b.br_startoff = off;  in xfs_bmbt_lookup_eq()
129 cur->bc_rec.b.br_startoff = off; in xfs_bmbt_lookup_ge()
297 ASSERT(be64_to_cpu(prevp->br_startoff) < in xfs_check_block()
298 be64_to_cpu(keyp->br_startoff)); in xfs_check_block()
536 ASSERT(mval[i].br_startoff >= bno); in xfs_bmap_validate_ret()
538 ASSERT(mval[i].br_startoff + mval[i].br_blockcount <= in xfs_bmap_validate_ret()
541 ASSERT(mval[i].br_startoff < bno + len); in xfs_bmap_validate_ret()
542 ASSERT(mval[i].br_startoff + mval[i].br_blockcount > in xfs_bmap_validate_ret()
546 mval[i - 1].br_startoff + mval[i - 1].br_blockcount == in xfs_bmap_validate_ret()
547 mval[i].br_startoff); in xfs_bmap_validate_ret()
844 kp->br_startoff = cpu_to_be64(xfs_bmbt_disk_get_startoff(arp)); in xfs_bmap_extents_to_btree()
1396 gotp->br_startoff = 0xffa5a5a5a5a5a5a5LL; in xfs_bmap_search_multi_extents()
1400 prevp->br_startoff = NULLFILEOFF; in xfs_bmap_search_multi_extents()
1453 (unsigned long long)gotp->br_startoff, in xfs_bmap_search_extents()
1555 if (prev.br_startoff == NULLFILEOFF) in xfs_bmap_last_before()
1558 *last_block = prev.br_startoff + prev.br_blockcount; in xfs_bmap_last_before()
1628 bma->aeof = bma->offset >= rec.br_startoff + rec.br_blockcount || in xfs_bmap_isaeof()
1629 (bma->offset >= rec.br_startoff && in xfs_bmap_isaeof()
1662 *last_block = rec.br_startoff + rec.br_blockcount; in xfs_bmap_last_offset()
1693 rval = s.br_startoff == 0 && s.br_blockcount == 1; in xfs_bmap_one_block()
1748 new_endoff = new->br_startoff + new->br_blockcount; in xfs_bmap_add_extent_delay_real()
1749 ASSERT(PREV.br_startoff <= new->br_startoff); in xfs_bmap_add_extent_delay_real()
1750 ASSERT(PREV.br_startoff + PREV.br_blockcount >= new_endoff); in xfs_bmap_add_extent_delay_real()
1759 if (PREV.br_startoff == new->br_startoff) in xfs_bmap_add_extent_delay_real()
1761 if (PREV.br_startoff + PREV.br_blockcount == new_endoff) in xfs_bmap_add_extent_delay_real()
1777 LEFT.br_startoff + LEFT.br_blockcount == new->br_startoff && in xfs_bmap_add_extent_delay_real()
1797 new_endoff == RIGHT.br_startoff && in xfs_bmap_add_extent_delay_real()
1834 error = xfs_bmbt_lookup_eq(bma->cur, RIGHT.br_startoff, in xfs_bmap_add_extent_delay_real()
1848 error = xfs_bmbt_update(bma->cur, LEFT.br_startoff, in xfs_bmap_add_extent_delay_real()
1875 error = xfs_bmbt_lookup_eq(bma->cur, LEFT.br_startoff, in xfs_bmap_add_extent_delay_real()
1881 error = xfs_bmbt_update(bma->cur, LEFT.br_startoff, in xfs_bmap_add_extent_delay_real()
1906 error = xfs_bmbt_lookup_eq(bma->cur, RIGHT.br_startoff, in xfs_bmap_add_extent_delay_real()
1912 error = xfs_bmbt_update(bma->cur, PREV.br_startoff, in xfs_bmap_add_extent_delay_real()
1936 error = xfs_bmbt_lookup_eq(bma->cur, new->br_startoff, in xfs_bmap_add_extent_delay_real()
1959 PREV.br_startoff + new->br_blockcount); in xfs_bmap_add_extent_delay_real()
1969 error = xfs_bmbt_lookup_eq(bma->cur, LEFT.br_startoff, in xfs_bmap_add_extent_delay_real()
1975 error = xfs_bmbt_update(bma->cur, LEFT.br_startoff, in xfs_bmap_add_extent_delay_real()
2006 error = xfs_bmbt_lookup_eq(bma->cur, new->br_startoff, in xfs_bmap_add_extent_delay_real()
2044 new->br_startoff, new->br_startblock, in xfs_bmap_add_extent_delay_real()
2052 error = xfs_bmbt_lookup_eq(bma->cur, RIGHT.br_startoff, in xfs_bmap_add_extent_delay_real()
2058 error = xfs_bmbt_update(bma->cur, new->br_startoff, in xfs_bmap_add_extent_delay_real()
2090 error = xfs_bmbt_lookup_eq(bma->cur, new->br_startoff, in xfs_bmap_add_extent_delay_real()
2142 temp = new->br_startoff - PREV.br_startoff; in xfs_bmap_add_extent_delay_real()
2143 temp2 = PREV.br_startoff + PREV.br_blockcount - new_endoff; in xfs_bmap_add_extent_delay_real()
2150 RIGHT.br_startoff = new_endoff; in xfs_bmap_add_extent_delay_real()
2159 error = xfs_bmbt_lookup_eq(bma->cur, new->br_startoff, in xfs_bmap_add_extent_delay_real()
2307 new_endoff = new->br_startoff + new->br_blockcount; in xfs_bmap_add_extent_unwritten_real()
2308 ASSERT(PREV.br_startoff <= new->br_startoff); in xfs_bmap_add_extent_unwritten_real()
2309 ASSERT(PREV.br_startoff + PREV.br_blockcount >= new_endoff); in xfs_bmap_add_extent_unwritten_real()
2315 if (PREV.br_startoff == new->br_startoff) in xfs_bmap_add_extent_unwritten_real()
2317 if (PREV.br_startoff + PREV.br_blockcount == new_endoff) in xfs_bmap_add_extent_unwritten_real()
2333 LEFT.br_startoff + LEFT.br_blockcount == new->br_startoff && in xfs_bmap_add_extent_unwritten_real()
2352 new_endoff == RIGHT.br_startoff && in xfs_bmap_add_extent_unwritten_real()
2389 if ((error = xfs_bmbt_lookup_eq(cur, RIGHT.br_startoff, in xfs_bmap_add_extent_unwritten_real()
2406 if ((error = xfs_bmbt_update(cur, LEFT.br_startoff, in xfs_bmap_add_extent_unwritten_real()
2432 if ((error = xfs_bmbt_lookup_eq(cur, PREV.br_startoff, in xfs_bmap_add_extent_unwritten_real()
2443 if ((error = xfs_bmbt_update(cur, LEFT.br_startoff, in xfs_bmap_add_extent_unwritten_real()
2467 if ((error = xfs_bmbt_lookup_eq(cur, RIGHT.br_startoff, in xfs_bmap_add_extent_unwritten_real()
2478 if ((error = xfs_bmbt_update(cur, new->br_startoff, in xfs_bmap_add_extent_unwritten_real()
2500 if ((error = xfs_bmbt_lookup_eq(cur, new->br_startoff, in xfs_bmap_add_extent_unwritten_real()
2505 if ((error = xfs_bmbt_update(cur, new->br_startoff, in xfs_bmap_add_extent_unwritten_real()
2521 PREV.br_startoff + new->br_blockcount); in xfs_bmap_add_extent_unwritten_real()
2537 if ((error = xfs_bmbt_lookup_eq(cur, PREV.br_startoff, in xfs_bmap_add_extent_unwritten_real()
2543 PREV.br_startoff + new->br_blockcount, in xfs_bmap_add_extent_unwritten_real()
2550 error = xfs_bmbt_update(cur, LEFT.br_startoff, in xfs_bmap_add_extent_unwritten_real()
2579 if ((error = xfs_bmbt_lookup_eq(cur, PREV.br_startoff, in xfs_bmap_add_extent_unwritten_real()
2585 PREV.br_startoff + new->br_blockcount, in xfs_bmap_add_extent_unwritten_real()
2611 new->br_startoff, new->br_startblock, in xfs_bmap_add_extent_unwritten_real()
2619 if ((error = xfs_bmbt_lookup_eq(cur, PREV.br_startoff, in xfs_bmap_add_extent_unwritten_real()
2624 if ((error = xfs_bmbt_update(cur, PREV.br_startoff, in xfs_bmap_add_extent_unwritten_real()
2631 if ((error = xfs_bmbt_update(cur, new->br_startoff, in xfs_bmap_add_extent_unwritten_real()
2657 if ((error = xfs_bmbt_lookup_eq(cur, PREV.br_startoff, in xfs_bmap_add_extent_unwritten_real()
2662 if ((error = xfs_bmbt_update(cur, PREV.br_startoff, in xfs_bmap_add_extent_unwritten_real()
2667 if ((error = xfs_bmbt_lookup_eq(cur, new->br_startoff, in xfs_bmap_add_extent_unwritten_real()
2687 new->br_startoff - PREV.br_startoff); in xfs_bmap_add_extent_unwritten_real()
2691 r[1].br_startoff = new_endoff; in xfs_bmap_add_extent_unwritten_real()
2693 PREV.br_startoff + PREV.br_blockcount - new_endoff; in xfs_bmap_add_extent_unwritten_real()
2705 if ((error = xfs_bmbt_lookup_eq(cur, PREV.br_startoff, in xfs_bmap_add_extent_unwritten_real()
2711 if ((error = xfs_bmbt_update(cur, r[1].br_startoff, in xfs_bmap_add_extent_unwritten_real()
2718 new->br_startoff - PREV.br_startoff; in xfs_bmap_add_extent_unwritten_real()
2727 if ((error = xfs_bmbt_lookup_eq(cur, new->br_startoff, in xfs_bmap_add_extent_unwritten_real()
2829 left.br_startoff + left.br_blockcount == new->br_startoff && in xfs_bmap_add_extent_hole_delay()
2834 new->br_startoff + new->br_blockcount == right.br_startoff && in xfs_bmap_add_extent_hole_delay()
2899 new->br_startoff, in xfs_bmap_add_extent_hole_delay()
2983 left.br_startoff + left.br_blockcount == new->br_startoff && in xfs_bmap_add_extent_hole_real()
2990 new->br_startoff + new->br_blockcount == right.br_startoff && in xfs_bmap_add_extent_hole_real()
3025 error = xfs_bmbt_lookup_eq(bma->cur, right.br_startoff, in xfs_bmap_add_extent_hole_real()
3039 error = xfs_bmbt_update(bma->cur, left.br_startoff, in xfs_bmap_add_extent_hole_real()
3066 error = xfs_bmbt_lookup_eq(bma->cur, left.br_startoff, in xfs_bmap_add_extent_hole_real()
3072 error = xfs_bmbt_update(bma->cur, left.br_startoff, in xfs_bmap_add_extent_hole_real()
3090 new->br_startoff, new->br_startblock, in xfs_bmap_add_extent_hole_real()
3100 right.br_startoff, in xfs_bmap_add_extent_hole_real()
3106 error = xfs_bmbt_update(bma->cur, new->br_startoff, in xfs_bmap_add_extent_hole_real()
3130 new->br_startoff, in xfs_bmap_add_extent_hole_real()
3209 (orig_off >= gotp->br_startoff) && in xfs_bmap_extsize_align()
3210 (orig_end <= gotp->br_startoff + gotp->br_blockcount)) { in xfs_bmap_extsize_align()
3248 if (prevp->br_startoff != NULLFILEOFF) { in xfs_bmap_extsize_align()
3250 prevo = prevp->br_startoff; in xfs_bmap_extsize_align()
3252 prevo = prevp->br_startoff + prevp->br_blockcount; in xfs_bmap_extsize_align()
3265 if (!eof && gotp->br_startoff != NULLFILEOFF) { in xfs_bmap_extsize_align()
3268 nexto = gotp->br_startoff + gotp->br_blockcount; in xfs_bmap_extsize_align()
3270 nexto = gotp->br_startoff; in xfs_bmap_extsize_align()
3338 if (!eof && gotp->br_startoff != NULLFILEOFF) in xfs_bmap_extsize_align()
3339 ASSERT(align_off + align_alen <= gotp->br_startoff); in xfs_bmap_extsize_align()
3340 if (prevp->br_startoff != NULLFILEOFF) in xfs_bmap_extsize_align()
3341 ASSERT(align_off >= prevp->br_startoff + prevp->br_blockcount); in xfs_bmap_extsize_align()
3376 if (ap->eof && ap->prev.br_startoff != NULLFILEOFF && in xfs_bmap_adjacent()
3385 (ap->prev.br_startoff + ap->prev.br_blockcount); in xfs_bmap_adjacent()
3405 if (ap->prev.br_startoff != NULLFILEOFF && in xfs_bmap_adjacent()
3414 (ap->prev.br_startoff + in xfs_bmap_adjacent()
3451 adjust = gotdiff = ap->got.br_startoff - ap->offset; in xfs_bmap_adjacent()
3919 got->br_startoff + got->br_blockcount <= obno) { in xfs_bmapi_trim_map()
3930 mval->br_startoff = *bno; in xfs_bmapi_trim_map()
3935 (*bno - got->br_startoff); in xfs_bmapi_trim_map()
3944 got->br_blockcount - (*bno - got->br_startoff)); in xfs_bmapi_trim_map()
3966 ((mval->br_startoff + mval->br_blockcount) <= end)); in xfs_bmapi_update_map()
3968 (mval->br_startoff < obno)); in xfs_bmapi_update_map()
3970 *bno = mval->br_startoff + mval->br_blockcount; in xfs_bmapi_update_map()
3972 if (*n > 0 && mval->br_startoff == mval[-1].br_startoff) { in xfs_bmapi_update_map()
3986 ASSERT(mval->br_startoff == in xfs_bmapi_update_map()
3987 mval[-1].br_startoff + mval[-1].br_blockcount); in xfs_bmapi_update_map()
3992 mval->br_startoff == in xfs_bmapi_update_map()
3993 mval[-1].br_startoff + mval[-1].br_blockcount) { in xfs_bmapi_update_map()
3997 ((mval->br_startoff + mval->br_blockcount) <= in xfs_bmapi_update_map()
4063 got.br_startoff = end; in xfs_bmapi_read()
4064 if (got.br_startoff > bno) { in xfs_bmapi_read()
4066 mval->br_startoff = bno; in xfs_bmapi_read()
4069 XFS_FILBLKS_MIN(len, got.br_startoff - bno); in xfs_bmapi_read()
4116 alen = XFS_FILBLKS_MIN(alen, got->br_startoff - aoff); in xfs_bmapi_reserve_delalloc()
4162 got->br_startoff = aoff; in xfs_bmapi_reserve_delalloc()
4174 ASSERT(got->br_startoff <= aoff); in xfs_bmapi_reserve_delalloc()
4175 ASSERT(got->br_startoff + got->br_blockcount >= aoff + alen); in xfs_bmapi_reserve_delalloc()
4244 if (eof || got.br_startoff > bno) { in xfs_bmapi_delay()
4296 bma->offset = bma->got.br_startoff; in xfs_bmapi_allocate()
4305 bma->got.br_startoff - bma->offset); in xfs_bmapi_allocate()
4358 bma->got.br_startoff = bma->offset; in xfs_bmapi_allocate()
4387 ASSERT(bma->got.br_startoff <= bma->offset); in xfs_bmapi_allocate()
4388 ASSERT(bma->got.br_startoff + bma->got.br_blockcount >= in xfs_bmapi_allocate()
4592 inhole = eof || bma.got.br_startoff > bno; in xfs_bmapi_write()
4766 ASSERT(got.br_startoff <= del->br_startoff); in xfs_bmap_del_extent()
4767 del_endoff = del->br_startoff + del->br_blockcount; in xfs_bmap_del_extent()
4768 got_endoff = got.br_startoff + got.br_blockcount; in xfs_bmap_del_extent()
4815 if ((error = xfs_bmbt_lookup_eq(cur, got.br_startoff, in xfs_bmap_del_extent()
4832 switch (((got.br_startoff == del->br_startoff) << 1) | in xfs_bmap_del_extent()
4904 if ((error = xfs_bmbt_update(cur, got.br_startoff, in xfs_bmap_del_extent()
4915 temp = del->br_startoff - got.br_startoff; in xfs_bmap_del_extent()
4918 new.br_startoff = del_endoff; in xfs_bmap_del_extent()
4927 got.br_startoff, in xfs_bmap_del_extent()
4949 got.br_startoff, in xfs_bmap_del_extent()
4960 got.br_startoff, in xfs_bmap_del_extent()
5120 bno = got.br_startoff + got.br_blockcount - 1; in xfs_bunmapi()
5147 if (got.br_startoff > bno) { in xfs_bunmapi()
5158 got.br_startoff + got.br_blockcount - 1); in xfs_bunmapi()
5168 if (got.br_startoff < start) { in xfs_bunmapi()
5169 del.br_startoff = start; in xfs_bunmapi()
5170 del.br_blockcount -= start - got.br_startoff; in xfs_bunmapi()
5172 del.br_startblock += start - got.br_startoff; in xfs_bunmapi()
5174 if (del.br_startoff + del.br_blockcount > bno + 1) in xfs_bunmapi()
5175 del.br_blockcount = bno + 1 - del.br_startoff; in xfs_bunmapi()
5195 if (bno < got.br_startoff) { in xfs_bunmapi()
5213 del.br_startoff += del.br_blockcount - mod; in xfs_bunmapi()
5234 del.br_startoff += mod; in xfs_bunmapi()
5236 } else if ((del.br_startoff == start && in xfs_bunmapi()
5246 if (got.br_startoff > bno) { in xfs_bunmapi()
5268 if (prev.br_startoff < start) { in xfs_bunmapi()
5269 mod = start - prev.br_startoff; in xfs_bunmapi()
5272 prev.br_startoff = start; in xfs_bunmapi()
5333 del.br_startoff > got.br_startoff && in xfs_bunmapi()
5334 del.br_startoff + del.br_blockcount < in xfs_bunmapi()
5335 got.br_startoff + got.br_blockcount) { in xfs_bunmapi()
5344 bno = del.br_startoff - 1; in xfs_bunmapi()
5430 startoff = got->br_startoff - shift; in xfs_bmse_can_merge()
5436 if ((left->br_startoff + left->br_blockcount != startoff) || in xfs_bmse_can_merge()
5500 error = xfs_bmbt_lookup_eq(cur, got.br_startoff, got.br_startblock, in xfs_bmse_merge()
5512 error = xfs_bmbt_lookup_eq(cur, left.br_startoff, left.br_startblock, in xfs_bmse_merge()
5520 return xfs_bmbt_update(cur, left.br_startoff, left.br_startblock, in xfs_bmse_merge()
5558 startoff = got.br_startoff - offset_shift_fsb; in xfs_bmse_shift_one()
5566 if (got.br_startoff < offset_shift_fsb) in xfs_bmse_shift_one()
5578 adj_irec.br_startoff + adj_irec.br_blockcount) in xfs_bmse_shift_one()
5589 startoff = got.br_startoff + offset_shift_fsb; in xfs_bmse_shift_one()
5600 if (startoff + got.br_blockcount > adj_irec.br_startoff) in xfs_bmse_shift_one()
5628 error = xfs_bmbt_lookup_eq(cur, got.br_startoff, got.br_startblock, in xfs_bmse_shift_one()
5634 got.br_startoff = startoff; in xfs_bmse_shift_one()
5635 return xfs_bmbt_update(cur, got.br_startoff, got.br_startblock, in xfs_bmse_shift_one()
5724 *next_fsb = got.br_startoff; in xfs_bmap_shift_extents()
5786 *next_fsb = got.br_startoff; in xfs_bmap_shift_extents()
5862 if (got.br_startoff >= split_fsb) in xfs_bmap_split_extent_at()
5865 gotblkcnt = split_fsb - got.br_startoff; in xfs_bmap_split_extent_at()
5866 new.br_startoff = split_fsb; in xfs_bmap_split_extent_at()
5876 error = xfs_bmbt_lookup_eq(cur, got.br_startoff, in xfs_bmap_split_extent_at()
5890 error = xfs_bmbt_update(cur, got.br_startoff, in xfs_bmap_split_extent_at()
5906 error = xfs_bmbt_lookup_eq(cur, new.br_startoff, in xfs_bmap_split_extent_at()