Lines Matching refs:br_startoff
111 cur->bc_rec.b.br_startoff = 0; in xfs_bmbt_lookup_first()
276 ASSERT(be64_to_cpu(prevp->br_startoff) < in xfs_check_block()
277 be64_to_cpu(keyp->br_startoff)); in xfs_check_block()
497 ASSERT(mval[i].br_startoff >= bno); in xfs_bmap_validate_ret()
499 ASSERT(mval[i].br_startoff + mval[i].br_blockcount <= in xfs_bmap_validate_ret()
502 ASSERT(mval[i].br_startoff < bno + len); in xfs_bmap_validate_ret()
503 ASSERT(mval[i].br_startoff + mval[i].br_blockcount > in xfs_bmap_validate_ret()
507 mval[i - 1].br_startoff + mval[i - 1].br_blockcount == in xfs_bmap_validate_ret()
508 mval[i].br_startoff); in xfs_bmap_validate_ret()
760 kp->br_startoff = cpu_to_be64(xfs_bmbt_disk_get_startoff(arp)); in xfs_bmap_extents_to_btree()
898 rec.br_startoff = 0; in xfs_bmap_local_to_extents()
1340 if (got.br_startoff >= lowest + len && in xfs_bmap_first_unused()
1341 got.br_startoff - max >= len) in xfs_bmap_first_unused()
1343 lastaddr = got.br_startoff + got.br_blockcount; in xfs_bmap_first_unused()
1450 bma->aeof = bma->offset >= rec.br_startoff + rec.br_blockcount || in xfs_bmap_isaeof()
1451 (bma->offset >= rec.br_startoff && in xfs_bmap_isaeof()
1484 *last_block = rec.br_startoff + rec.br_blockcount; in xfs_bmap_last_offset()
1515 rval = s.br_startoff == 0 && s.br_blockcount == 1; in xfs_bmap_one_block()
1570 new_endoff = new->br_startoff + new->br_blockcount; in xfs_bmap_add_extent_delay_real()
1572 ASSERT(PREV.br_startoff <= new->br_startoff); in xfs_bmap_add_extent_delay_real()
1573 ASSERT(PREV.br_startoff + PREV.br_blockcount >= new_endoff); in xfs_bmap_add_extent_delay_real()
1582 if (PREV.br_startoff == new->br_startoff) in xfs_bmap_add_extent_delay_real()
1584 if (PREV.br_startoff + PREV.br_blockcount == new_endoff) in xfs_bmap_add_extent_delay_real()
1598 LEFT.br_startoff + LEFT.br_blockcount == new->br_startoff && in xfs_bmap_add_extent_delay_real()
1616 new_endoff == RIGHT.br_startoff && in xfs_bmap_add_extent_delay_real()
1765 PREV.br_startoff += new->br_blockcount; in xfs_bmap_add_extent_delay_real()
1820 PREV.br_startoff = new_endoff; in xfs_bmap_add_extent_delay_real()
1834 RIGHT.br_startoff = new->br_startoff; in xfs_bmap_add_extent_delay_real()
1931 RIGHT.br_startoff = new_endoff; in xfs_bmap_add_extent_delay_real()
1933 PREV.br_startoff + PREV.br_blockcount - new_endoff; in xfs_bmap_add_extent_delay_real()
1939 PREV.br_blockcount = new->br_startoff - PREV.br_startoff; in xfs_bmap_add_extent_delay_real()
2075 new_endoff = new->br_startoff + new->br_blockcount; in xfs_bmap_add_extent_unwritten_real()
2076 ASSERT(PREV.br_startoff <= new->br_startoff); in xfs_bmap_add_extent_unwritten_real()
2077 ASSERT(PREV.br_startoff + PREV.br_blockcount >= new_endoff); in xfs_bmap_add_extent_unwritten_real()
2083 if (PREV.br_startoff == new->br_startoff) in xfs_bmap_add_extent_unwritten_real()
2085 if (PREV.br_startoff + PREV.br_blockcount == new_endoff) in xfs_bmap_add_extent_unwritten_real()
2099 LEFT.br_startoff + LEFT.br_blockcount == new->br_startoff && in xfs_bmap_add_extent_unwritten_real()
2117 new_endoff == RIGHT.br_startoff && in xfs_bmap_add_extent_unwritten_real()
2272 PREV.br_startoff += new->br_blockcount; in xfs_bmap_add_extent_unwritten_real()
2306 PREV.br_startoff += new->br_blockcount; in xfs_bmap_add_extent_unwritten_real()
2340 RIGHT.br_startoff = new->br_startoff; in xfs_bmap_add_extent_unwritten_real()
2410 PREV.br_blockcount = new->br_startoff - PREV.br_startoff; in xfs_bmap_add_extent_unwritten_real()
2413 r[1].br_startoff = new_endoff; in xfs_bmap_add_extent_unwritten_real()
2415 old.br_startoff + old.br_blockcount - new_endoff; in xfs_bmap_add_extent_unwritten_real()
2547 left.br_startoff + left.br_blockcount == new->br_startoff && in xfs_bmap_add_extent_hole_delay()
2552 new->br_startoff + new->br_blockcount == right.br_startoff && in xfs_bmap_add_extent_hole_delay()
2615 right.br_startoff = new->br_startoff; in xfs_bmap_add_extent_hole_delay()
2696 left.br_startoff + left.br_blockcount == new->br_startoff && in xfs_bmap_add_extent_hole_real()
2703 new->br_startoff + new->br_blockcount == right.br_startoff && in xfs_bmap_add_extent_hole_real()
2787 right.br_startoff = new->br_startoff; in xfs_bmap_add_extent_hole_real()
2899 (orig_off >= gotp->br_startoff) && in xfs_bmap_extsize_align()
2900 (orig_end <= gotp->br_startoff + gotp->br_blockcount)) { in xfs_bmap_extsize_align()
2938 if (prevp->br_startoff != NULLFILEOFF) { in xfs_bmap_extsize_align()
2940 prevo = prevp->br_startoff; in xfs_bmap_extsize_align()
2942 prevo = prevp->br_startoff + prevp->br_blockcount; in xfs_bmap_extsize_align()
2955 if (!eof && gotp->br_startoff != NULLFILEOFF) { in xfs_bmap_extsize_align()
2958 nexto = gotp->br_startoff + gotp->br_blockcount; in xfs_bmap_extsize_align()
2960 nexto = gotp->br_startoff; in xfs_bmap_extsize_align()
3028 if (!eof && gotp->br_startoff != NULLFILEOFF) in xfs_bmap_extsize_align()
3029 ASSERT(align_off + align_alen <= gotp->br_startoff); in xfs_bmap_extsize_align()
3030 if (prevp->br_startoff != NULLFILEOFF) in xfs_bmap_extsize_align()
3031 ASSERT(align_off >= prevp->br_startoff + prevp->br_blockcount); in xfs_bmap_extsize_align()
3068 if (ap->eof && ap->prev.br_startoff != NULLFILEOFF && in xfs_bmap_adjacent()
3077 (ap->prev.br_startoff + ap->prev.br_blockcount); in xfs_bmap_adjacent()
3097 if (ap->prev.br_startoff != NULLFILEOFF && in xfs_bmap_adjacent()
3106 (ap->prev.br_startoff + in xfs_bmap_adjacent()
3143 adjust = gotdiff = ap->got.br_startoff - ap->offset; in xfs_bmap_adjacent()
3667 if (irec->br_startoff + irec->br_blockcount <= bno || in xfs_trim_extent()
3668 irec->br_startoff >= end) { in xfs_trim_extent()
3673 if (irec->br_startoff < bno) { in xfs_trim_extent()
3674 distance = bno - irec->br_startoff; in xfs_trim_extent()
3680 irec->br_startoff += distance; in xfs_trim_extent()
3684 if (end < irec->br_startoff + irec->br_blockcount) { in xfs_trim_extent()
3685 distance = irec->br_startoff + irec->br_blockcount - end; in xfs_trim_extent()
3705 got->br_startoff + got->br_blockcount <= obno) { in xfs_bmapi_trim_map()
3716 mval->br_startoff = *bno; in xfs_bmapi_trim_map()
3721 (*bno - got->br_startoff); in xfs_bmapi_trim_map()
3730 got->br_blockcount - (*bno - got->br_startoff)); in xfs_bmapi_trim_map()
3752 ((mval->br_startoff + mval->br_blockcount) <= end)); in xfs_bmapi_update_map()
3754 (mval->br_startoff < obno)); in xfs_bmapi_update_map()
3756 *bno = mval->br_startoff + mval->br_blockcount; in xfs_bmapi_update_map()
3758 if (*n > 0 && mval->br_startoff == mval[-1].br_startoff) { in xfs_bmapi_update_map()
3771 ASSERT(mval->br_startoff == in xfs_bmapi_update_map()
3772 mval[-1].br_startoff + mval[-1].br_blockcount); in xfs_bmapi_update_map()
3777 mval->br_startoff == in xfs_bmapi_update_map()
3778 mval[-1].br_startoff + mval[-1].br_blockcount) { in xfs_bmapi_update_map()
3782 ((mval->br_startoff + mval->br_blockcount) <= in xfs_bmapi_update_map()
3835 mval->br_startoff = bno; in xfs_bmapi_read()
3870 got.br_startoff = end; in xfs_bmapi_read()
3871 if (got.br_startoff > bno) { in xfs_bmapi_read()
3873 mval->br_startoff = bno; in xfs_bmapi_read()
3876 XFS_FILBLKS_MIN(len, got.br_startoff - bno); in xfs_bmapi_read()
3938 alen = XFS_FILBLKS_MIN(alen, got->br_startoff - aoff); in xfs_bmapi_reserve_delalloc()
3948 prev.br_startoff = NULLFILEOFF; in xfs_bmapi_reserve_delalloc()
3984 got->br_startoff = aoff; in xfs_bmapi_reserve_delalloc()
4030 bma->offset = bma->got.br_startoff; in xfs_bmapi_allocate()
4036 bma->got.br_startoff - bma->offset); in xfs_bmapi_allocate()
4088 bma->got.br_startoff = bma->offset; in xfs_bmapi_allocate()
4124 ASSERT(bma->got.br_startoff <= bma->offset); in xfs_bmapi_allocate()
4125 ASSERT(bma->got.br_startoff + bma->got.br_blockcount >= in xfs_bmapi_allocate()
4339 bma.prev.br_startoff = NULLFILEOFF; in xfs_bmapi_write()
4349 if (eof || bma.got.br_startoff > bno) { in xfs_bmapi_write()
4482 bma.got.br_startoff > offset_fsb) { in xfs_bmapi_convert_delalloc()
4506 bma.offset = bma.got.br_startoff; in xfs_bmapi_convert_delalloc()
4514 bma.prev.br_startoff = NULLFILEOFF; in xfs_bmapi_convert_delalloc()
4600 ASSERT(got.br_startoff > bno); in xfs_bmapi_remap()
4601 ASSERT(got.br_startoff - bno >= len); in xfs_bmapi_remap()
4612 got.br_startoff = bno; in xfs_bmapi_remap()
4746 del_endoff = del->br_startoff + del->br_blockcount; in xfs_bmap_del_extent_delay()
4747 got_endoff = got->br_startoff + got->br_blockcount; in xfs_bmap_del_extent_delay()
4752 ASSERT(got->br_startoff <= del->br_startoff); in xfs_bmap_del_extent_delay()
4774 if (got->br_startoff == del->br_startoff) in xfs_bmap_del_extent_delay()
4791 got->br_startoff = del_endoff; in xfs_bmap_del_extent_delay()
4818 got->br_blockcount = del->br_startoff - got->br_startoff; in xfs_bmap_del_extent_delay()
4830 new.br_startoff = del_endoff; in xfs_bmap_del_extent_delay()
4869 del_endoff = del->br_startoff + del->br_blockcount; in xfs_bmap_del_extent_cow()
4870 got_endoff = got->br_startoff + got->br_blockcount; in xfs_bmap_del_extent_cow()
4873 ASSERT(got->br_startoff <= del->br_startoff); in xfs_bmap_del_extent_cow()
4877 if (got->br_startoff == del->br_startoff) in xfs_bmap_del_extent_cow()
4894 got->br_startoff = del_endoff; in xfs_bmap_del_extent_cow()
4910 got->br_blockcount = del->br_startoff - got->br_startoff; in xfs_bmap_del_extent_cow()
4912 new.br_startoff = del_endoff; in xfs_bmap_del_extent_cow()
4963 ASSERT(got.br_startoff <= del->br_startoff); in xfs_bmap_del_extent_real()
4964 del_endoff = del->br_startoff + del->br_blockcount; in xfs_bmap_del_extent_real()
4965 got_endoff = got.br_startoff + got.br_blockcount; in xfs_bmap_del_extent_real()
4983 del->br_startoff > got.br_startoff && del_endoff < got_endoff) in xfs_bmap_del_extent_real()
5019 if (got.br_startoff == del->br_startoff) in xfs_bmap_del_extent_real()
5046 got.br_startoff = del_endoff; in xfs_bmap_del_extent_real()
5078 got.br_blockcount = del->br_startoff - got.br_startoff; in xfs_bmap_del_extent_real()
5081 new.br_startoff = del_endoff; in xfs_bmap_del_extent_real()
5279 if (got.br_startoff > end && in __xfs_bunmapi()
5289 got.br_startoff + got.br_blockcount - 1); in __xfs_bunmapi()
5309 if (got.br_startoff < start) { in __xfs_bunmapi()
5310 del.br_startoff = start; in __xfs_bunmapi()
5311 del.br_blockcount -= start - got.br_startoff; in __xfs_bunmapi()
5313 del.br_startblock += start - got.br_startoff; in __xfs_bunmapi()
5315 if (del.br_startoff + del.br_blockcount > end + 1) in __xfs_bunmapi()
5316 del.br_blockcount = end + 1 - del.br_startoff; in __xfs_bunmapi()
5320 del.br_startoff += del.br_blockcount - max_len; in __xfs_bunmapi()
5347 if (end < got.br_startoff && in __xfs_bunmapi()
5365 del.br_startoff += del.br_blockcount - mod; in __xfs_bunmapi()
5387 del.br_startoff += mod; in __xfs_bunmapi()
5389 } else if (del.br_startoff == start && in __xfs_bunmapi()
5398 if (got.br_startoff > end && in __xfs_bunmapi()
5419 if (prev.br_startoff < start) { in __xfs_bunmapi()
5420 mod = start - prev.br_startoff; in __xfs_bunmapi()
5423 prev.br_startoff = start; in __xfs_bunmapi()
5459 end = del.br_startoff - 1; in __xfs_bunmapi()
5466 (got.br_startoff > end && in __xfs_bunmapi()
5547 startoff = got->br_startoff - shift; in xfs_bmse_can_merge()
5553 if ((left->br_startoff + left->br_blockcount != startoff) || in xfs_bmse_can_merge()
5644 new.br_startoff = left->br_startoff + left->br_blockcount; in xfs_bmse_merge()
5666 got->br_startoff = startoff; in xfs_bmap_shift_update_extent()
5739 new_startoff = got.br_startoff - offset_shift_fsb; in xfs_bmap_collapse_extents()
5741 if (new_startoff < prev.br_startoff + prev.br_blockcount) { in xfs_bmap_collapse_extents()
5755 if (got.br_startoff < offset_shift_fsb) { in xfs_bmap_collapse_extents()
5772 *next_fsb = got.br_startoff; in xfs_bmap_collapse_extents()
5799 if (!error && !is_empty && got.br_startoff >= off && in xfs_bmap_can_insert_extents()
5800 ((got.br_startoff + shift) & BMBT_STARTOFF_MASK) < got.br_startoff) in xfs_bmap_can_insert_extents()
5853 stop_fsb > got.br_startoff) { in xfs_bmap_insert_extents()
5866 if (stop_fsb >= got.br_startoff + got.br_blockcount) { in xfs_bmap_insert_extents()
5871 new_startoff = got.br_startoff + offset_shift_fsb; in xfs_bmap_insert_extents()
5873 if (new_startoff + got.br_blockcount > next.br_startoff) { in xfs_bmap_insert_extents()
5894 stop_fsb >= got.br_startoff + got.br_blockcount) { in xfs_bmap_insert_extents()
5899 *next_fsb = got.br_startoff; in xfs_bmap_insert_extents()
5956 got.br_startoff >= split_fsb) in xfs_bmap_split_extent_at()
5959 gotblkcnt = split_fsb - got.br_startoff; in xfs_bmap_split_extent_at()
5960 new.br_startoff = split_fsb; in xfs_bmap_split_extent_at()
6079 bmap->br_startoff, in __xfs_bmap_add()