Lines Matching refs:br_startoff
120 cur->bc_rec.b.br_startoff = 0; in xfs_bmbt_lookup_first()
278 ASSERT(be64_to_cpu(prevp->br_startoff) < in xfs_check_block()
279 be64_to_cpu(keyp->br_startoff)); in xfs_check_block()
498 ASSERT(mval[i].br_startoff >= bno); in xfs_bmap_validate_ret()
500 ASSERT(mval[i].br_startoff + mval[i].br_blockcount <= in xfs_bmap_validate_ret()
503 ASSERT(mval[i].br_startoff < bno + len); in xfs_bmap_validate_ret()
504 ASSERT(mval[i].br_startoff + mval[i].br_blockcount > in xfs_bmap_validate_ret()
508 mval[i - 1].br_startoff + mval[i - 1].br_blockcount == in xfs_bmap_validate_ret()
509 mval[i].br_startoff); in xfs_bmap_validate_ret()
709 kp->br_startoff = cpu_to_be64(xfs_bmbt_disk_get_startoff(arp)); in xfs_bmap_extents_to_btree()
848 rec.br_startoff = 0; in xfs_bmap_local_to_extents()
1233 if (got.br_startoff >= lowest + len && in xfs_bmap_first_unused()
1234 got.br_startoff - max >= len) in xfs_bmap_first_unused()
1236 lastaddr = got.br_startoff + got.br_blockcount; in xfs_bmap_first_unused()
1340 bma->aeof = bma->offset >= rec.br_startoff + rec.br_blockcount || in xfs_bmap_isaeof()
1341 (bma->offset >= rec.br_startoff && in xfs_bmap_isaeof()
1374 *last_block = rec.br_startoff + rec.br_blockcount; in xfs_bmap_last_offset()
1421 new_endoff = new->br_startoff + new->br_blockcount; in xfs_bmap_add_extent_delay_real()
1423 ASSERT(PREV.br_startoff <= new->br_startoff); in xfs_bmap_add_extent_delay_real()
1424 ASSERT(PREV.br_startoff + PREV.br_blockcount >= new_endoff); in xfs_bmap_add_extent_delay_real()
1433 if (PREV.br_startoff == new->br_startoff) in xfs_bmap_add_extent_delay_real()
1435 if (PREV.br_startoff + PREV.br_blockcount == new_endoff) in xfs_bmap_add_extent_delay_real()
1449 LEFT.br_startoff + LEFT.br_blockcount == new->br_startoff && in xfs_bmap_add_extent_delay_real()
1467 new_endoff == RIGHT.br_startoff && in xfs_bmap_add_extent_delay_real()
1637 PREV.br_startoff += new->br_blockcount; in xfs_bmap_add_extent_delay_real()
1702 PREV.br_startoff = new_endoff; in xfs_bmap_add_extent_delay_real()
1716 RIGHT.br_startoff = new->br_startoff; in xfs_bmap_add_extent_delay_real()
1823 RIGHT.br_startoff = new_endoff; in xfs_bmap_add_extent_delay_real()
1825 PREV.br_startoff + PREV.br_blockcount - new_endoff; in xfs_bmap_add_extent_delay_real()
1831 PREV.br_blockcount = new->br_startoff - PREV.br_startoff; in xfs_bmap_add_extent_delay_real()
1973 new_endoff = new->br_startoff + new->br_blockcount; in xfs_bmap_add_extent_unwritten_real()
1974 ASSERT(PREV.br_startoff <= new->br_startoff); in xfs_bmap_add_extent_unwritten_real()
1975 ASSERT(PREV.br_startoff + PREV.br_blockcount >= new_endoff); in xfs_bmap_add_extent_unwritten_real()
1981 if (PREV.br_startoff == new->br_startoff) in xfs_bmap_add_extent_unwritten_real()
1983 if (PREV.br_startoff + PREV.br_blockcount == new_endoff) in xfs_bmap_add_extent_unwritten_real()
1997 LEFT.br_startoff + LEFT.br_blockcount == new->br_startoff && in xfs_bmap_add_extent_unwritten_real()
2015 new_endoff == RIGHT.br_startoff && in xfs_bmap_add_extent_unwritten_real()
2203 PREV.br_startoff += new->br_blockcount; in xfs_bmap_add_extent_unwritten_real()
2240 PREV.br_startoff += new->br_blockcount; in xfs_bmap_add_extent_unwritten_real()
2280 RIGHT.br_startoff = new->br_startoff; in xfs_bmap_add_extent_unwritten_real()
2361 PREV.br_blockcount = new->br_startoff - PREV.br_startoff; in xfs_bmap_add_extent_unwritten_real()
2364 r[1].br_startoff = new_endoff; in xfs_bmap_add_extent_unwritten_real()
2366 old.br_startoff + old.br_blockcount - new_endoff; in xfs_bmap_add_extent_unwritten_real()
2509 left.br_startoff + left.br_blockcount == new->br_startoff && in xfs_bmap_add_extent_hole_delay()
2514 new->br_startoff + new->br_blockcount == right.br_startoff && in xfs_bmap_add_extent_hole_delay()
2577 right.br_startoff = new->br_startoff; in xfs_bmap_add_extent_hole_delay()
2658 left.br_startoff + left.br_blockcount == new->br_startoff && in xfs_bmap_add_extent_hole_real()
2665 new->br_startoff + new->br_blockcount == right.br_startoff && in xfs_bmap_add_extent_hole_real()
2760 right.br_startoff = new->br_startoff; in xfs_bmap_add_extent_hole_real()
2881 (orig_off >= gotp->br_startoff) && in xfs_bmap_extsize_align()
2882 (orig_end <= gotp->br_startoff + gotp->br_blockcount)) { in xfs_bmap_extsize_align()
2920 if (prevp->br_startoff != NULLFILEOFF) { in xfs_bmap_extsize_align()
2922 prevo = prevp->br_startoff; in xfs_bmap_extsize_align()
2924 prevo = prevp->br_startoff + prevp->br_blockcount; in xfs_bmap_extsize_align()
2937 if (!eof && gotp->br_startoff != NULLFILEOFF) { in xfs_bmap_extsize_align()
2940 nexto = gotp->br_startoff + gotp->br_blockcount; in xfs_bmap_extsize_align()
2942 nexto = gotp->br_startoff; in xfs_bmap_extsize_align()
3010 if (!eof && gotp->br_startoff != NULLFILEOFF) in xfs_bmap_extsize_align()
3011 ASSERT(align_off + align_alen <= gotp->br_startoff); in xfs_bmap_extsize_align()
3012 if (prevp->br_startoff != NULLFILEOFF) in xfs_bmap_extsize_align()
3013 ASSERT(align_off >= prevp->br_startoff + prevp->br_blockcount); in xfs_bmap_extsize_align()
3050 if (ap->eof && ap->prev.br_startoff != NULLFILEOFF && in xfs_bmap_adjacent()
3059 (ap->prev.br_startoff + ap->prev.br_blockcount); in xfs_bmap_adjacent()
3079 if (ap->prev.br_startoff != NULLFILEOFF && in xfs_bmap_adjacent()
3088 (ap->prev.br_startoff + in xfs_bmap_adjacent()
3125 adjust = gotdiff = ap->got.br_startoff - ap->offset; in xfs_bmap_adjacent()
3732 if (irec->br_startoff + irec->br_blockcount <= bno || in xfs_trim_extent()
3733 irec->br_startoff >= end) { in xfs_trim_extent()
3738 if (irec->br_startoff < bno) { in xfs_trim_extent()
3739 distance = bno - irec->br_startoff; in xfs_trim_extent()
3745 irec->br_startoff += distance; in xfs_trim_extent()
3749 if (end < irec->br_startoff + irec->br_blockcount) { in xfs_trim_extent()
3750 distance = irec->br_startoff + irec->br_blockcount - end; in xfs_trim_extent()
3770 got->br_startoff + got->br_blockcount <= obno) { in xfs_bmapi_trim_map()
3781 mval->br_startoff = *bno; in xfs_bmapi_trim_map()
3786 (*bno - got->br_startoff); in xfs_bmapi_trim_map()
3795 got->br_blockcount - (*bno - got->br_startoff)); in xfs_bmapi_trim_map()
3817 ((mval->br_startoff + mval->br_blockcount) <= end)); in xfs_bmapi_update_map()
3819 (mval->br_startoff < obno)); in xfs_bmapi_update_map()
3821 *bno = mval->br_startoff + mval->br_blockcount; in xfs_bmapi_update_map()
3823 if (*n > 0 && mval->br_startoff == mval[-1].br_startoff) { in xfs_bmapi_update_map()
3836 ASSERT(mval->br_startoff == in xfs_bmapi_update_map()
3837 mval[-1].br_startoff + mval[-1].br_blockcount); in xfs_bmapi_update_map()
3842 mval->br_startoff == in xfs_bmapi_update_map()
3843 mval[-1].br_startoff + mval[-1].br_blockcount) { in xfs_bmapi_update_map()
3847 ((mval->br_startoff + mval->br_blockcount) <= in xfs_bmapi_update_map()
3906 got.br_startoff = end; in xfs_bmapi_read()
3907 if (got.br_startoff > bno) { in xfs_bmapi_read()
3909 mval->br_startoff = bno; in xfs_bmapi_read()
3912 XFS_FILBLKS_MIN(len, got.br_startoff - bno); in xfs_bmapi_read()
3974 alen = XFS_FILBLKS_MIN(alen, got->br_startoff - aoff); in xfs_bmapi_reserve_delalloc()
3984 prev.br_startoff = NULLFILEOFF; in xfs_bmapi_reserve_delalloc()
4019 got->br_startoff = aoff; in xfs_bmapi_reserve_delalloc()
4101 bma->offset = bma->got.br_startoff; in xfs_bmapi_allocate()
4103 bma->prev.br_startoff = NULLFILEOFF; in xfs_bmapi_allocate()
4108 bma->got.br_startoff - bma->offset); in xfs_bmapi_allocate()
4146 bma->got.br_startoff = bma->offset; in xfs_bmapi_allocate()
4172 ASSERT(bma->got.br_startoff <= bma->offset); in xfs_bmapi_allocate()
4173 ASSERT(bma->got.br_startoff + bma->got.br_blockcount >= in xfs_bmapi_allocate()
4383 bma.prev.br_startoff = NULLFILEOFF; in xfs_bmapi_write()
4393 if (eof || bma.got.br_startoff > bno) { in xfs_bmapi_write()
4538 bma.got.br_startoff > offset_fsb) { in xfs_bmapi_convert_delalloc()
4562 bma.offset = bma.got.br_startoff; in xfs_bmapi_convert_delalloc()
4585 bma.prev.br_startoff = NULLFILEOFF; in xfs_bmapi_convert_delalloc()
4666 ASSERT(got.br_startoff > bno); in xfs_bmapi_remap()
4667 ASSERT(got.br_startoff - bno >= len); in xfs_bmapi_remap()
4678 got.br_startoff = bno; in xfs_bmapi_remap()
4812 del_endoff = del->br_startoff + del->br_blockcount; in xfs_bmap_del_extent_delay()
4813 got_endoff = got->br_startoff + got->br_blockcount; in xfs_bmap_del_extent_delay()
4818 ASSERT(got->br_startoff <= del->br_startoff); in xfs_bmap_del_extent_delay()
4839 if (got->br_startoff == del->br_startoff) in xfs_bmap_del_extent_delay()
4856 got->br_startoff = del_endoff; in xfs_bmap_del_extent_delay()
4883 got->br_blockcount = del->br_startoff - got->br_startoff; in xfs_bmap_del_extent_delay()
4895 new.br_startoff = del_endoff; in xfs_bmap_del_extent_delay()
4934 del_endoff = del->br_startoff + del->br_blockcount; in xfs_bmap_del_extent_cow()
4935 got_endoff = got->br_startoff + got->br_blockcount; in xfs_bmap_del_extent_cow()
4938 ASSERT(got->br_startoff <= del->br_startoff); in xfs_bmap_del_extent_cow()
4942 if (got->br_startoff == del->br_startoff) in xfs_bmap_del_extent_cow()
4959 got->br_startoff = del_endoff; in xfs_bmap_del_extent_cow()
4975 got->br_blockcount = del->br_startoff - got->br_startoff; in xfs_bmap_del_extent_cow()
4977 new.br_startoff = del_endoff; in xfs_bmap_del_extent_cow()
5028 ASSERT(got.br_startoff <= del->br_startoff); in xfs_bmap_del_extent_real()
5029 del_endoff = del->br_startoff + del->br_blockcount; in xfs_bmap_del_extent_real()
5030 got_endoff = got.br_startoff + got.br_blockcount; in xfs_bmap_del_extent_real()
5047 del->br_startoff > got.br_startoff && del_endoff < got_endoff) in xfs_bmap_del_extent_real()
5091 if (got.br_startoff == del->br_startoff) in xfs_bmap_del_extent_real()
5121 got.br_startoff = del_endoff; in xfs_bmap_del_extent_real()
5154 got.br_blockcount = del->br_startoff - got.br_startoff; in xfs_bmap_del_extent_real()
5157 new.br_startoff = del_endoff; in xfs_bmap_del_extent_real()
5344 if (got.br_startoff > end && in __xfs_bunmapi()
5354 got.br_startoff + got.br_blockcount - 1); in __xfs_bunmapi()
5364 if (got.br_startoff < start) { in __xfs_bunmapi()
5365 del.br_startoff = start; in __xfs_bunmapi()
5366 del.br_blockcount -= start - got.br_startoff; in __xfs_bunmapi()
5368 del.br_startblock += start - got.br_startoff; in __xfs_bunmapi()
5370 if (del.br_startoff + del.br_blockcount > end + 1) in __xfs_bunmapi()
5371 del.br_blockcount = end + 1 - del.br_startoff; in __xfs_bunmapi()
5394 if (end < got.br_startoff && in __xfs_bunmapi()
5412 del.br_startoff += del.br_blockcount - mod; in __xfs_bunmapi()
5435 del.br_startoff += off; in __xfs_bunmapi()
5437 } else if (del.br_startoff == start && in __xfs_bunmapi()
5446 if (got.br_startoff > end && in __xfs_bunmapi()
5469 del.br_startoff - mod, in __xfs_bunmapi()
5470 prev.br_startoff); in __xfs_bunmapi()
5471 mod = unwrite_start - prev.br_startoff; in __xfs_bunmapi()
5472 prev.br_startoff = unwrite_start; in __xfs_bunmapi()
5508 end = del.br_startoff - 1; in __xfs_bunmapi()
5515 (got.br_startoff > end && in __xfs_bunmapi()
5596 startoff = got->br_startoff - shift; in xfs_bmse_can_merge()
5602 if ((left->br_startoff + left->br_blockcount != startoff) || in xfs_bmse_can_merge()
5696 new.br_startoff = left->br_startoff + left->br_blockcount; in xfs_bmse_merge()
5718 got->br_startoff = startoff; in xfs_bmap_shift_update_extent()
5789 new_startoff = got.br_startoff - offset_shift_fsb; in xfs_bmap_collapse_extents()
5791 if (new_startoff < prev.br_startoff + prev.br_blockcount) { in xfs_bmap_collapse_extents()
5805 if (got.br_startoff < offset_shift_fsb) { in xfs_bmap_collapse_extents()
5822 *next_fsb = got.br_startoff; in xfs_bmap_collapse_extents()
5849 if (!error && !is_empty && got.br_startoff >= off && in xfs_bmap_can_insert_extents()
5850 ((got.br_startoff + shift) & BMBT_STARTOFF_MASK) < got.br_startoff) in xfs_bmap_can_insert_extents()
5898 stop_fsb > got.br_startoff) { in xfs_bmap_insert_extents()
5913 if (XFS_IS_CORRUPT(mp, stop_fsb > got.br_startoff)) { in xfs_bmap_insert_extents()
5918 new_startoff = got.br_startoff + offset_shift_fsb; in xfs_bmap_insert_extents()
5920 if (new_startoff + got.br_blockcount > next.br_startoff) { in xfs_bmap_insert_extents()
5941 stop_fsb >= got.br_startoff + got.br_blockcount) { in xfs_bmap_insert_extents()
5946 *next_fsb = got.br_startoff; in xfs_bmap_insert_extents()
5996 got.br_startoff >= split_fsb) in xfs_bmap_split_extent()
5999 gotblkcnt = split_fsb - got.br_startoff; in xfs_bmap_split_extent()
6000 new.br_startoff = split_fsb; in xfs_bmap_split_extent()
6099 bmap->br_startoff, in __xfs_bmap_add()
6198 if (!xfs_verify_fileext(mp, irec->br_startoff, irec->br_blockcount)) in xfs_bmap_validate_extent()