Lines Matching refs:br_startoff

112 	cur->bc_rec.b.br_startoff = 0;  in xfs_bmbt_lookup_first()
277 ASSERT(be64_to_cpu(prevp->br_startoff) < in xfs_check_block()
278 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()
761 kp->br_startoff = cpu_to_be64(xfs_bmbt_disk_get_startoff(arp)); in xfs_bmap_extents_to_btree()
903 rec.br_startoff = 0; in xfs_bmap_local_to_extents()
1301 if (got.br_startoff >= lowest + len && in xfs_bmap_first_unused()
1302 got.br_startoff - max >= len) in xfs_bmap_first_unused()
1304 lastaddr = got.br_startoff + got.br_blockcount; in xfs_bmap_first_unused()
1412 bma->aeof = bma->offset >= rec.br_startoff + rec.br_blockcount || in xfs_bmap_isaeof()
1413 (bma->offset >= rec.br_startoff && in xfs_bmap_isaeof()
1446 *last_block = rec.br_startoff + rec.br_blockcount; in xfs_bmap_last_offset()
1476 rval = s.br_startoff == 0 && s.br_blockcount == 1; in xfs_bmap_one_block()
1525 new_endoff = new->br_startoff + new->br_blockcount; in xfs_bmap_add_extent_delay_real()
1527 ASSERT(PREV.br_startoff <= new->br_startoff); in xfs_bmap_add_extent_delay_real()
1528 ASSERT(PREV.br_startoff + PREV.br_blockcount >= new_endoff); in xfs_bmap_add_extent_delay_real()
1537 if (PREV.br_startoff == new->br_startoff) in xfs_bmap_add_extent_delay_real()
1539 if (PREV.br_startoff + PREV.br_blockcount == new_endoff) in xfs_bmap_add_extent_delay_real()
1553 LEFT.br_startoff + LEFT.br_blockcount == new->br_startoff && in xfs_bmap_add_extent_delay_real()
1571 new_endoff == RIGHT.br_startoff && in xfs_bmap_add_extent_delay_real()
1741 PREV.br_startoff += new->br_blockcount; in xfs_bmap_add_extent_delay_real()
1806 PREV.br_startoff = new_endoff; in xfs_bmap_add_extent_delay_real()
1820 RIGHT.br_startoff = new->br_startoff; in xfs_bmap_add_extent_delay_real()
1927 RIGHT.br_startoff = new_endoff; in xfs_bmap_add_extent_delay_real()
1929 PREV.br_startoff + PREV.br_blockcount - new_endoff; in xfs_bmap_add_extent_delay_real()
1935 PREV.br_blockcount = new->br_startoff - PREV.br_startoff; in xfs_bmap_add_extent_delay_real()
2077 new_endoff = new->br_startoff + new->br_blockcount; in xfs_bmap_add_extent_unwritten_real()
2078 ASSERT(PREV.br_startoff <= new->br_startoff); in xfs_bmap_add_extent_unwritten_real()
2079 ASSERT(PREV.br_startoff + PREV.br_blockcount >= new_endoff); in xfs_bmap_add_extent_unwritten_real()
2085 if (PREV.br_startoff == new->br_startoff) in xfs_bmap_add_extent_unwritten_real()
2087 if (PREV.br_startoff + PREV.br_blockcount == new_endoff) in xfs_bmap_add_extent_unwritten_real()
2101 LEFT.br_startoff + LEFT.br_blockcount == new->br_startoff && in xfs_bmap_add_extent_unwritten_real()
2119 new_endoff == RIGHT.br_startoff && in xfs_bmap_add_extent_unwritten_real()
2307 PREV.br_startoff += new->br_blockcount; in xfs_bmap_add_extent_unwritten_real()
2344 PREV.br_startoff += new->br_blockcount; in xfs_bmap_add_extent_unwritten_real()
2384 RIGHT.br_startoff = new->br_startoff; in xfs_bmap_add_extent_unwritten_real()
2465 PREV.br_blockcount = new->br_startoff - PREV.br_startoff; in xfs_bmap_add_extent_unwritten_real()
2468 r[1].br_startoff = new_endoff; in xfs_bmap_add_extent_unwritten_real()
2470 old.br_startoff + old.br_blockcount - new_endoff; in xfs_bmap_add_extent_unwritten_real()
2613 left.br_startoff + left.br_blockcount == new->br_startoff && in xfs_bmap_add_extent_hole_delay()
2618 new->br_startoff + new->br_blockcount == right.br_startoff && in xfs_bmap_add_extent_hole_delay()
2681 right.br_startoff = new->br_startoff; in xfs_bmap_add_extent_hole_delay()
2762 left.br_startoff + left.br_blockcount == new->br_startoff && in xfs_bmap_add_extent_hole_real()
2769 new->br_startoff + new->br_blockcount == right.br_startoff && in xfs_bmap_add_extent_hole_real()
2864 right.br_startoff = new->br_startoff; in xfs_bmap_add_extent_hole_real()
2985 (orig_off >= gotp->br_startoff) && in xfs_bmap_extsize_align()
2986 (orig_end <= gotp->br_startoff + gotp->br_blockcount)) { in xfs_bmap_extsize_align()
3024 if (prevp->br_startoff != NULLFILEOFF) { in xfs_bmap_extsize_align()
3026 prevo = prevp->br_startoff; in xfs_bmap_extsize_align()
3028 prevo = prevp->br_startoff + prevp->br_blockcount; in xfs_bmap_extsize_align()
3041 if (!eof && gotp->br_startoff != NULLFILEOFF) { in xfs_bmap_extsize_align()
3044 nexto = gotp->br_startoff + gotp->br_blockcount; in xfs_bmap_extsize_align()
3046 nexto = gotp->br_startoff; in xfs_bmap_extsize_align()
3114 if (!eof && gotp->br_startoff != NULLFILEOFF) in xfs_bmap_extsize_align()
3115 ASSERT(align_off + align_alen <= gotp->br_startoff); in xfs_bmap_extsize_align()
3116 if (prevp->br_startoff != NULLFILEOFF) in xfs_bmap_extsize_align()
3117 ASSERT(align_off >= prevp->br_startoff + prevp->br_blockcount); in xfs_bmap_extsize_align()
3154 if (ap->eof && ap->prev.br_startoff != NULLFILEOFF && in xfs_bmap_adjacent()
3163 (ap->prev.br_startoff + ap->prev.br_blockcount); in xfs_bmap_adjacent()
3183 if (ap->prev.br_startoff != NULLFILEOFF && in xfs_bmap_adjacent()
3192 (ap->prev.br_startoff + in xfs_bmap_adjacent()
3229 adjust = gotdiff = ap->got.br_startoff - ap->offset; in xfs_bmap_adjacent()
3738 if (irec->br_startoff + irec->br_blockcount <= bno || in xfs_trim_extent()
3739 irec->br_startoff >= end) { in xfs_trim_extent()
3744 if (irec->br_startoff < bno) { in xfs_trim_extent()
3745 distance = bno - irec->br_startoff; in xfs_trim_extent()
3751 irec->br_startoff += distance; in xfs_trim_extent()
3755 if (end < irec->br_startoff + irec->br_blockcount) { in xfs_trim_extent()
3756 distance = irec->br_startoff + irec->br_blockcount - end; in xfs_trim_extent()
3776 got->br_startoff + got->br_blockcount <= obno) { in xfs_bmapi_trim_map()
3787 mval->br_startoff = *bno; in xfs_bmapi_trim_map()
3792 (*bno - got->br_startoff); in xfs_bmapi_trim_map()
3801 got->br_blockcount - (*bno - got->br_startoff)); in xfs_bmapi_trim_map()
3823 ((mval->br_startoff + mval->br_blockcount) <= end)); in xfs_bmapi_update_map()
3825 (mval->br_startoff < obno)); in xfs_bmapi_update_map()
3827 *bno = mval->br_startoff + mval->br_blockcount; in xfs_bmapi_update_map()
3829 if (*n > 0 && mval->br_startoff == mval[-1].br_startoff) { in xfs_bmapi_update_map()
3842 ASSERT(mval->br_startoff == in xfs_bmapi_update_map()
3843 mval[-1].br_startoff + mval[-1].br_blockcount); in xfs_bmapi_update_map()
3848 mval->br_startoff == in xfs_bmapi_update_map()
3849 mval[-1].br_startoff + mval[-1].br_blockcount) { in xfs_bmapi_update_map()
3853 ((mval->br_startoff + mval->br_blockcount) <= in xfs_bmapi_update_map()
3914 got.br_startoff = end; in xfs_bmapi_read()
3915 if (got.br_startoff > bno) { in xfs_bmapi_read()
3917 mval->br_startoff = bno; in xfs_bmapi_read()
3920 XFS_FILBLKS_MIN(len, got.br_startoff - bno); in xfs_bmapi_read()
3982 alen = XFS_FILBLKS_MIN(alen, got->br_startoff - aoff); in xfs_bmapi_reserve_delalloc()
3992 prev.br_startoff = NULLFILEOFF; in xfs_bmapi_reserve_delalloc()
4028 got->br_startoff = aoff; in xfs_bmapi_reserve_delalloc()
4107 bma->offset = bma->got.br_startoff; in xfs_bmapi_allocate()
4109 bma->prev.br_startoff = NULLFILEOFF; in xfs_bmapi_allocate()
4114 bma->got.br_startoff - bma->offset); in xfs_bmapi_allocate()
4147 bma->got.br_startoff = bma->offset; in xfs_bmapi_allocate()
4173 ASSERT(bma->got.br_startoff <= bma->offset); in xfs_bmapi_allocate()
4174 ASSERT(bma->got.br_startoff + bma->got.br_blockcount >= in xfs_bmapi_allocate()
4386 bma.prev.br_startoff = NULLFILEOFF; in xfs_bmapi_write()
4396 if (eof || bma.got.br_startoff > bno) { in xfs_bmapi_write()
4533 bma.got.br_startoff > offset_fsb) { in xfs_bmapi_convert_delalloc()
4557 bma.offset = bma.got.br_startoff; in xfs_bmapi_convert_delalloc()
4579 bma.prev.br_startoff = NULLFILEOFF; in xfs_bmapi_convert_delalloc()
4662 ASSERT(got.br_startoff > bno); in xfs_bmapi_remap()
4663 ASSERT(got.br_startoff - bno >= len); in xfs_bmapi_remap()
4674 got.br_startoff = bno; in xfs_bmapi_remap()
4808 del_endoff = del->br_startoff + del->br_blockcount; in xfs_bmap_del_extent_delay()
4809 got_endoff = got->br_startoff + got->br_blockcount; in xfs_bmap_del_extent_delay()
4814 ASSERT(got->br_startoff <= del->br_startoff); in xfs_bmap_del_extent_delay()
4836 if (got->br_startoff == del->br_startoff) in xfs_bmap_del_extent_delay()
4853 got->br_startoff = del_endoff; in xfs_bmap_del_extent_delay()
4880 got->br_blockcount = del->br_startoff - got->br_startoff; in xfs_bmap_del_extent_delay()
4892 new.br_startoff = del_endoff; in xfs_bmap_del_extent_delay()
4931 del_endoff = del->br_startoff + del->br_blockcount; in xfs_bmap_del_extent_cow()
4932 got_endoff = got->br_startoff + got->br_blockcount; in xfs_bmap_del_extent_cow()
4935 ASSERT(got->br_startoff <= del->br_startoff); in xfs_bmap_del_extent_cow()
4939 if (got->br_startoff == del->br_startoff) in xfs_bmap_del_extent_cow()
4956 got->br_startoff = del_endoff; in xfs_bmap_del_extent_cow()
4972 got->br_blockcount = del->br_startoff - got->br_startoff; in xfs_bmap_del_extent_cow()
4974 new.br_startoff = del_endoff; in xfs_bmap_del_extent_cow()
5025 ASSERT(got.br_startoff <= del->br_startoff); in xfs_bmap_del_extent_real()
5026 del_endoff = del->br_startoff + del->br_blockcount; in xfs_bmap_del_extent_real()
5027 got_endoff = got.br_startoff + got.br_blockcount; in xfs_bmap_del_extent_real()
5044 del->br_startoff > got.br_startoff && del_endoff < got_endoff) in xfs_bmap_del_extent_real()
5088 if (got.br_startoff == del->br_startoff) in xfs_bmap_del_extent_real()
5118 got.br_startoff = del_endoff; in xfs_bmap_del_extent_real()
5150 got.br_blockcount = del->br_startoff - got.br_startoff; in xfs_bmap_del_extent_real()
5153 new.br_startoff = del_endoff; in xfs_bmap_del_extent_real()
5351 if (got.br_startoff > end && in __xfs_bunmapi()
5361 got.br_startoff + got.br_blockcount - 1); in __xfs_bunmapi()
5381 if (got.br_startoff < start) { in __xfs_bunmapi()
5382 del.br_startoff = start; in __xfs_bunmapi()
5383 del.br_blockcount -= start - got.br_startoff; in __xfs_bunmapi()
5385 del.br_startblock += start - got.br_startoff; in __xfs_bunmapi()
5387 if (del.br_startoff + del.br_blockcount > end + 1) in __xfs_bunmapi()
5388 del.br_blockcount = end + 1 - del.br_startoff; in __xfs_bunmapi()
5392 del.br_startoff += del.br_blockcount - max_len; in __xfs_bunmapi()
5419 if (end < got.br_startoff && in __xfs_bunmapi()
5437 del.br_startoff += del.br_blockcount - mod; in __xfs_bunmapi()
5460 del.br_startoff += off; in __xfs_bunmapi()
5462 } else if (del.br_startoff == start && in __xfs_bunmapi()
5471 if (got.br_startoff > end && in __xfs_bunmapi()
5494 del.br_startoff - mod, in __xfs_bunmapi()
5495 prev.br_startoff); in __xfs_bunmapi()
5496 mod = unwrite_start - prev.br_startoff; in __xfs_bunmapi()
5497 prev.br_startoff = unwrite_start; in __xfs_bunmapi()
5534 end = del.br_startoff - 1; in __xfs_bunmapi()
5541 (got.br_startoff > end && in __xfs_bunmapi()
5622 startoff = got->br_startoff - shift; in xfs_bmse_can_merge()
5628 if ((left->br_startoff + left->br_blockcount != startoff) || in xfs_bmse_can_merge()
5722 new.br_startoff = left->br_startoff + left->br_blockcount; in xfs_bmse_merge()
5744 got->br_startoff = startoff; in xfs_bmap_shift_update_extent()
5817 new_startoff = got.br_startoff - offset_shift_fsb; in xfs_bmap_collapse_extents()
5819 if (new_startoff < prev.br_startoff + prev.br_blockcount) { in xfs_bmap_collapse_extents()
5833 if (got.br_startoff < offset_shift_fsb) { in xfs_bmap_collapse_extents()
5850 *next_fsb = got.br_startoff; in xfs_bmap_collapse_extents()
5877 if (!error && !is_empty && got.br_startoff >= off && in xfs_bmap_can_insert_extents()
5878 ((got.br_startoff + shift) & BMBT_STARTOFF_MASK) < got.br_startoff) in xfs_bmap_can_insert_extents()
5928 stop_fsb > got.br_startoff) { in xfs_bmap_insert_extents()
5943 if (XFS_IS_CORRUPT(mp, stop_fsb > got.br_startoff)) { in xfs_bmap_insert_extents()
5948 new_startoff = got.br_startoff + offset_shift_fsb; in xfs_bmap_insert_extents()
5950 if (new_startoff + got.br_blockcount > next.br_startoff) { in xfs_bmap_insert_extents()
5971 stop_fsb >= got.br_startoff + got.br_blockcount) { in xfs_bmap_insert_extents()
5976 *next_fsb = got.br_startoff; in xfs_bmap_insert_extents()
6028 got.br_startoff >= split_fsb) in xfs_bmap_split_extent()
6031 gotblkcnt = split_fsb - got.br_startoff; in xfs_bmap_split_extent()
6032 new.br_startoff = split_fsb; in xfs_bmap_split_extent()
6131 bmap->br_startoff, in __xfs_bmap_add()
6234 if (irec->br_startoff + irec->br_blockcount <= irec->br_startoff) in xfs_bmap_validate_extent()