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()
1397 gotp->br_startoff = 0xffa5a5a5a5a5a5a5LL; in xfs_bmap_search_multi_extents()
1401 prevp->br_startoff = NULLFILEOFF; in xfs_bmap_search_multi_extents()
1454 (unsigned long long)gotp->br_startoff, in xfs_bmap_search_extents()
1556 if (prev.br_startoff == NULLFILEOFF) in xfs_bmap_last_before()
1559 *last_block = prev.br_startoff + prev.br_blockcount; in xfs_bmap_last_before()
1629 bma->aeof = bma->offset >= rec.br_startoff + rec.br_blockcount || in xfs_bmap_isaeof()
1630 (bma->offset >= rec.br_startoff && in xfs_bmap_isaeof()
1663 *last_block = rec.br_startoff + rec.br_blockcount; in xfs_bmap_last_offset()
1694 rval = s.br_startoff == 0 && s.br_blockcount == 1; in xfs_bmap_one_block()
1749 new_endoff = new->br_startoff + new->br_blockcount; in xfs_bmap_add_extent_delay_real()
1750 ASSERT(PREV.br_startoff <= new->br_startoff); in xfs_bmap_add_extent_delay_real()
1751 ASSERT(PREV.br_startoff + PREV.br_blockcount >= new_endoff); in xfs_bmap_add_extent_delay_real()
1760 if (PREV.br_startoff == new->br_startoff) in xfs_bmap_add_extent_delay_real()
1762 if (PREV.br_startoff + PREV.br_blockcount == new_endoff) in xfs_bmap_add_extent_delay_real()
1778 LEFT.br_startoff + LEFT.br_blockcount == new->br_startoff && in xfs_bmap_add_extent_delay_real()
1798 new_endoff == RIGHT.br_startoff && in xfs_bmap_add_extent_delay_real()
1835 error = xfs_bmbt_lookup_eq(bma->cur, RIGHT.br_startoff, in xfs_bmap_add_extent_delay_real()
1849 error = xfs_bmbt_update(bma->cur, LEFT.br_startoff, in xfs_bmap_add_extent_delay_real()
1876 error = xfs_bmbt_lookup_eq(bma->cur, LEFT.br_startoff, in xfs_bmap_add_extent_delay_real()
1882 error = xfs_bmbt_update(bma->cur, LEFT.br_startoff, in xfs_bmap_add_extent_delay_real()
1907 error = xfs_bmbt_lookup_eq(bma->cur, RIGHT.br_startoff, in xfs_bmap_add_extent_delay_real()
1913 error = xfs_bmbt_update(bma->cur, PREV.br_startoff, in xfs_bmap_add_extent_delay_real()
1937 error = xfs_bmbt_lookup_eq(bma->cur, new->br_startoff, in xfs_bmap_add_extent_delay_real()
1960 PREV.br_startoff + new->br_blockcount); in xfs_bmap_add_extent_delay_real()
1970 error = xfs_bmbt_lookup_eq(bma->cur, LEFT.br_startoff, in xfs_bmap_add_extent_delay_real()
1976 error = xfs_bmbt_update(bma->cur, LEFT.br_startoff, in xfs_bmap_add_extent_delay_real()
2007 error = xfs_bmbt_lookup_eq(bma->cur, new->br_startoff, in xfs_bmap_add_extent_delay_real()
2045 new->br_startoff, new->br_startblock, in xfs_bmap_add_extent_delay_real()
2053 error = xfs_bmbt_lookup_eq(bma->cur, RIGHT.br_startoff, in xfs_bmap_add_extent_delay_real()
2059 error = xfs_bmbt_update(bma->cur, new->br_startoff, in xfs_bmap_add_extent_delay_real()
2091 error = xfs_bmbt_lookup_eq(bma->cur, new->br_startoff, in xfs_bmap_add_extent_delay_real()
2143 temp = new->br_startoff - PREV.br_startoff; in xfs_bmap_add_extent_delay_real()
2144 temp2 = PREV.br_startoff + PREV.br_blockcount - new_endoff; in xfs_bmap_add_extent_delay_real()
2151 RIGHT.br_startoff = new_endoff; in xfs_bmap_add_extent_delay_real()
2160 error = xfs_bmbt_lookup_eq(bma->cur, new->br_startoff, in xfs_bmap_add_extent_delay_real()
2308 new_endoff = new->br_startoff + new->br_blockcount; in xfs_bmap_add_extent_unwritten_real()
2309 ASSERT(PREV.br_startoff <= new->br_startoff); in xfs_bmap_add_extent_unwritten_real()
2310 ASSERT(PREV.br_startoff + PREV.br_blockcount >= new_endoff); in xfs_bmap_add_extent_unwritten_real()
2316 if (PREV.br_startoff == new->br_startoff) in xfs_bmap_add_extent_unwritten_real()
2318 if (PREV.br_startoff + PREV.br_blockcount == new_endoff) in xfs_bmap_add_extent_unwritten_real()
2334 LEFT.br_startoff + LEFT.br_blockcount == new->br_startoff && in xfs_bmap_add_extent_unwritten_real()
2353 new_endoff == RIGHT.br_startoff && in xfs_bmap_add_extent_unwritten_real()
2390 if ((error = xfs_bmbt_lookup_eq(cur, RIGHT.br_startoff, in xfs_bmap_add_extent_unwritten_real()
2407 if ((error = xfs_bmbt_update(cur, LEFT.br_startoff, in xfs_bmap_add_extent_unwritten_real()
2433 if ((error = xfs_bmbt_lookup_eq(cur, PREV.br_startoff, in xfs_bmap_add_extent_unwritten_real()
2444 if ((error = xfs_bmbt_update(cur, LEFT.br_startoff, in xfs_bmap_add_extent_unwritten_real()
2468 if ((error = xfs_bmbt_lookup_eq(cur, RIGHT.br_startoff, in xfs_bmap_add_extent_unwritten_real()
2479 if ((error = xfs_bmbt_update(cur, new->br_startoff, in xfs_bmap_add_extent_unwritten_real()
2501 if ((error = xfs_bmbt_lookup_eq(cur, new->br_startoff, in xfs_bmap_add_extent_unwritten_real()
2506 if ((error = xfs_bmbt_update(cur, new->br_startoff, in xfs_bmap_add_extent_unwritten_real()
2522 PREV.br_startoff + new->br_blockcount); in xfs_bmap_add_extent_unwritten_real()
2538 if ((error = xfs_bmbt_lookup_eq(cur, PREV.br_startoff, in xfs_bmap_add_extent_unwritten_real()
2544 PREV.br_startoff + new->br_blockcount, in xfs_bmap_add_extent_unwritten_real()
2551 error = xfs_bmbt_update(cur, LEFT.br_startoff, in xfs_bmap_add_extent_unwritten_real()
2580 if ((error = xfs_bmbt_lookup_eq(cur, PREV.br_startoff, in xfs_bmap_add_extent_unwritten_real()
2586 PREV.br_startoff + new->br_blockcount, in xfs_bmap_add_extent_unwritten_real()
2612 new->br_startoff, new->br_startblock, in xfs_bmap_add_extent_unwritten_real()
2620 if ((error = xfs_bmbt_lookup_eq(cur, PREV.br_startoff, in xfs_bmap_add_extent_unwritten_real()
2625 if ((error = xfs_bmbt_update(cur, PREV.br_startoff, in xfs_bmap_add_extent_unwritten_real()
2632 if ((error = xfs_bmbt_update(cur, new->br_startoff, in xfs_bmap_add_extent_unwritten_real()
2658 if ((error = xfs_bmbt_lookup_eq(cur, PREV.br_startoff, in xfs_bmap_add_extent_unwritten_real()
2663 if ((error = xfs_bmbt_update(cur, PREV.br_startoff, in xfs_bmap_add_extent_unwritten_real()
2668 if ((error = xfs_bmbt_lookup_eq(cur, new->br_startoff, in xfs_bmap_add_extent_unwritten_real()
2688 new->br_startoff - PREV.br_startoff); in xfs_bmap_add_extent_unwritten_real()
2692 r[1].br_startoff = new_endoff; in xfs_bmap_add_extent_unwritten_real()
2694 PREV.br_startoff + PREV.br_blockcount - new_endoff; in xfs_bmap_add_extent_unwritten_real()
2706 if ((error = xfs_bmbt_lookup_eq(cur, PREV.br_startoff, in xfs_bmap_add_extent_unwritten_real()
2712 if ((error = xfs_bmbt_update(cur, r[1].br_startoff, in xfs_bmap_add_extent_unwritten_real()
2719 new->br_startoff - PREV.br_startoff; in xfs_bmap_add_extent_unwritten_real()
2728 if ((error = xfs_bmbt_lookup_eq(cur, new->br_startoff, in xfs_bmap_add_extent_unwritten_real()
2830 left.br_startoff + left.br_blockcount == new->br_startoff && in xfs_bmap_add_extent_hole_delay()
2835 new->br_startoff + new->br_blockcount == right.br_startoff && in xfs_bmap_add_extent_hole_delay()
2900 new->br_startoff, in xfs_bmap_add_extent_hole_delay()
2984 left.br_startoff + left.br_blockcount == new->br_startoff && in xfs_bmap_add_extent_hole_real()
2991 new->br_startoff + new->br_blockcount == right.br_startoff && in xfs_bmap_add_extent_hole_real()
3026 error = xfs_bmbt_lookup_eq(bma->cur, right.br_startoff, in xfs_bmap_add_extent_hole_real()
3040 error = xfs_bmbt_update(bma->cur, left.br_startoff, in xfs_bmap_add_extent_hole_real()
3067 error = xfs_bmbt_lookup_eq(bma->cur, left.br_startoff, in xfs_bmap_add_extent_hole_real()
3073 error = xfs_bmbt_update(bma->cur, left.br_startoff, in xfs_bmap_add_extent_hole_real()
3091 new->br_startoff, new->br_startblock, in xfs_bmap_add_extent_hole_real()
3101 right.br_startoff, in xfs_bmap_add_extent_hole_real()
3107 error = xfs_bmbt_update(bma->cur, new->br_startoff, in xfs_bmap_add_extent_hole_real()
3131 new->br_startoff, in xfs_bmap_add_extent_hole_real()
3210 (orig_off >= gotp->br_startoff) && in xfs_bmap_extsize_align()
3211 (orig_end <= gotp->br_startoff + gotp->br_blockcount)) { in xfs_bmap_extsize_align()
3249 if (prevp->br_startoff != NULLFILEOFF) { in xfs_bmap_extsize_align()
3251 prevo = prevp->br_startoff; in xfs_bmap_extsize_align()
3253 prevo = prevp->br_startoff + prevp->br_blockcount; in xfs_bmap_extsize_align()
3266 if (!eof && gotp->br_startoff != NULLFILEOFF) { in xfs_bmap_extsize_align()
3269 nexto = gotp->br_startoff + gotp->br_blockcount; in xfs_bmap_extsize_align()
3271 nexto = gotp->br_startoff; in xfs_bmap_extsize_align()
3339 if (!eof && gotp->br_startoff != NULLFILEOFF) in xfs_bmap_extsize_align()
3340 ASSERT(align_off + align_alen <= gotp->br_startoff); in xfs_bmap_extsize_align()
3341 if (prevp->br_startoff != NULLFILEOFF) in xfs_bmap_extsize_align()
3342 ASSERT(align_off >= prevp->br_startoff + prevp->br_blockcount); in xfs_bmap_extsize_align()
3377 if (ap->eof && ap->prev.br_startoff != NULLFILEOFF && in xfs_bmap_adjacent()
3386 (ap->prev.br_startoff + ap->prev.br_blockcount); in xfs_bmap_adjacent()
3406 if (ap->prev.br_startoff != NULLFILEOFF && in xfs_bmap_adjacent()
3415 (ap->prev.br_startoff + in xfs_bmap_adjacent()
3452 adjust = gotdiff = ap->got.br_startoff - ap->offset; in xfs_bmap_adjacent()
3914 got->br_startoff + got->br_blockcount <= obno) { in xfs_bmapi_trim_map()
3925 mval->br_startoff = *bno; in xfs_bmapi_trim_map()
3930 (*bno - got->br_startoff); in xfs_bmapi_trim_map()
3939 got->br_blockcount - (*bno - got->br_startoff)); in xfs_bmapi_trim_map()
3961 ((mval->br_startoff + mval->br_blockcount) <= end)); in xfs_bmapi_update_map()
3963 (mval->br_startoff < obno)); in xfs_bmapi_update_map()
3965 *bno = mval->br_startoff + mval->br_blockcount; in xfs_bmapi_update_map()
3967 if (*n > 0 && mval->br_startoff == mval[-1].br_startoff) { in xfs_bmapi_update_map()
3981 ASSERT(mval->br_startoff == in xfs_bmapi_update_map()
3982 mval[-1].br_startoff + mval[-1].br_blockcount); in xfs_bmapi_update_map()
3987 mval->br_startoff == in xfs_bmapi_update_map()
3988 mval[-1].br_startoff + mval[-1].br_blockcount) { in xfs_bmapi_update_map()
3992 ((mval->br_startoff + mval->br_blockcount) <= in xfs_bmapi_update_map()
4058 got.br_startoff = end; in xfs_bmapi_read()
4059 if (got.br_startoff > bno) { in xfs_bmapi_read()
4061 mval->br_startoff = bno; in xfs_bmapi_read()
4064 XFS_FILBLKS_MIN(len, got.br_startoff - bno); in xfs_bmapi_read()
4111 alen = XFS_FILBLKS_MIN(alen, got->br_startoff - aoff); in xfs_bmapi_reserve_delalloc()
4157 got->br_startoff = aoff; in xfs_bmapi_reserve_delalloc()
4169 ASSERT(got->br_startoff <= aoff); in xfs_bmapi_reserve_delalloc()
4170 ASSERT(got->br_startoff + got->br_blockcount >= aoff + alen); in xfs_bmapi_reserve_delalloc()
4239 if (eof || got.br_startoff > bno) { in xfs_bmapi_delay()
4291 bma->offset = bma->got.br_startoff; in xfs_bmapi_allocate()
4300 bma->got.br_startoff - bma->offset); in xfs_bmapi_allocate()
4350 bma->got.br_startoff = bma->offset; in xfs_bmapi_allocate()
4379 ASSERT(bma->got.br_startoff <= bma->offset); in xfs_bmapi_allocate()
4380 ASSERT(bma->got.br_startoff + bma->got.br_blockcount >= in xfs_bmapi_allocate()
4553 inhole = eof || bma.got.br_startoff > bno; in xfs_bmapi_write()
4727 ASSERT(got.br_startoff <= del->br_startoff); in xfs_bmap_del_extent()
4728 del_endoff = del->br_startoff + del->br_blockcount; in xfs_bmap_del_extent()
4729 got_endoff = got.br_startoff + got.br_blockcount; in xfs_bmap_del_extent()
4776 if ((error = xfs_bmbt_lookup_eq(cur, got.br_startoff, in xfs_bmap_del_extent()
4793 switch (((got.br_startoff == del->br_startoff) << 1) | in xfs_bmap_del_extent()
4865 if ((error = xfs_bmbt_update(cur, got.br_startoff, in xfs_bmap_del_extent()
4876 temp = del->br_startoff - got.br_startoff; in xfs_bmap_del_extent()
4879 new.br_startoff = del_endoff; in xfs_bmap_del_extent()
4888 got.br_startoff, in xfs_bmap_del_extent()
4910 got.br_startoff, in xfs_bmap_del_extent()
4921 got.br_startoff, in xfs_bmap_del_extent()
5081 bno = got.br_startoff + got.br_blockcount - 1; in xfs_bunmapi()
5108 if (got.br_startoff > bno) { in xfs_bunmapi()
5119 got.br_startoff + got.br_blockcount - 1); in xfs_bunmapi()
5129 if (got.br_startoff < start) { in xfs_bunmapi()
5130 del.br_startoff = start; in xfs_bunmapi()
5131 del.br_blockcount -= start - got.br_startoff; in xfs_bunmapi()
5133 del.br_startblock += start - got.br_startoff; in xfs_bunmapi()
5135 if (del.br_startoff + del.br_blockcount > bno + 1) in xfs_bunmapi()
5136 del.br_blockcount = bno + 1 - del.br_startoff; in xfs_bunmapi()
5156 if (bno < got.br_startoff) { in xfs_bunmapi()
5174 del.br_startoff += del.br_blockcount - mod; in xfs_bunmapi()
5195 del.br_startoff += mod; in xfs_bunmapi()
5197 } else if ((del.br_startoff == start && in xfs_bunmapi()
5207 if (got.br_startoff > bno) { in xfs_bunmapi()
5229 if (prev.br_startoff < start) { in xfs_bunmapi()
5230 mod = start - prev.br_startoff; in xfs_bunmapi()
5233 prev.br_startoff = start; in xfs_bunmapi()
5294 del.br_startoff > got.br_startoff && in xfs_bunmapi()
5295 del.br_startoff + del.br_blockcount < in xfs_bunmapi()
5296 got.br_startoff + got.br_blockcount) { in xfs_bunmapi()
5305 bno = del.br_startoff - 1; in xfs_bunmapi()
5391 startoff = got->br_startoff - shift; in xfs_bmse_can_merge()
5397 if ((left->br_startoff + left->br_blockcount != startoff) || in xfs_bmse_can_merge()
5461 error = xfs_bmbt_lookup_eq(cur, got.br_startoff, got.br_startblock, in xfs_bmse_merge()
5473 error = xfs_bmbt_lookup_eq(cur, left.br_startoff, left.br_startblock, in xfs_bmse_merge()
5481 return xfs_bmbt_update(cur, left.br_startoff, left.br_startblock, in xfs_bmse_merge()
5519 startoff = got.br_startoff - offset_shift_fsb; in xfs_bmse_shift_one()
5527 if (got.br_startoff < offset_shift_fsb) in xfs_bmse_shift_one()
5539 adj_irec.br_startoff + adj_irec.br_blockcount) in xfs_bmse_shift_one()
5550 startoff = got.br_startoff + offset_shift_fsb; in xfs_bmse_shift_one()
5561 if (startoff + got.br_blockcount > adj_irec.br_startoff) in xfs_bmse_shift_one()
5589 error = xfs_bmbt_lookup_eq(cur, got.br_startoff, got.br_startblock, in xfs_bmse_shift_one()
5595 got.br_startoff = startoff; in xfs_bmse_shift_one()
5596 return xfs_bmbt_update(cur, got.br_startoff, got.br_startblock, in xfs_bmse_shift_one()
5685 *next_fsb = got.br_startoff; in xfs_bmap_shift_extents()
5747 *next_fsb = got.br_startoff; in xfs_bmap_shift_extents()
5823 if (got.br_startoff >= split_fsb) in xfs_bmap_split_extent_at()
5826 gotblkcnt = split_fsb - got.br_startoff; in xfs_bmap_split_extent_at()
5827 new.br_startoff = split_fsb; in xfs_bmap_split_extent_at()
5837 error = xfs_bmbt_lookup_eq(cur, got.br_startoff, in xfs_bmap_split_extent_at()
5851 error = xfs_bmbt_update(cur, got.br_startoff, in xfs_bmap_split_extent_at()
5867 error = xfs_bmbt_lookup_eq(cur, new.br_startoff, in xfs_bmap_split_extent_at()