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()
703 kp->br_startoff = cpu_to_be64(xfs_bmbt_disk_get_startoff(arp)); in xfs_bmap_extents_to_btree()
838 rec.br_startoff = 0; in xfs_bmap_local_to_extents()
1113 irec->br_startoff, irec->br_startblock, irec->br_blockcount, in xfs_bmap_complain_bad_rec()
1257 if (got.br_startoff >= lowest + len && in xfs_bmap_first_unused()
1258 got.br_startoff - max >= len) in xfs_bmap_first_unused()
1260 lastaddr = got.br_startoff + got.br_blockcount; in xfs_bmap_first_unused()
1364 bma->aeof = bma->offset >= rec.br_startoff + rec.br_blockcount || in xfs_bmap_isaeof()
1365 (bma->offset >= rec.br_startoff && in xfs_bmap_isaeof()
1398 *last_block = rec.br_startoff + rec.br_blockcount; in xfs_bmap_last_offset()
1445 new_endoff = new->br_startoff + new->br_blockcount; in xfs_bmap_add_extent_delay_real()
1447 ASSERT(PREV.br_startoff <= new->br_startoff); in xfs_bmap_add_extent_delay_real()
1448 ASSERT(PREV.br_startoff + PREV.br_blockcount >= new_endoff); in xfs_bmap_add_extent_delay_real()
1457 if (PREV.br_startoff == new->br_startoff) in xfs_bmap_add_extent_delay_real()
1459 if (PREV.br_startoff + PREV.br_blockcount == new_endoff) in xfs_bmap_add_extent_delay_real()
1473 LEFT.br_startoff + LEFT.br_blockcount == new->br_startoff && in xfs_bmap_add_extent_delay_real()
1491 new_endoff == RIGHT.br_startoff && in xfs_bmap_add_extent_delay_real()
1661 PREV.br_startoff += new->br_blockcount; in xfs_bmap_add_extent_delay_real()
1726 PREV.br_startoff = new_endoff; in xfs_bmap_add_extent_delay_real()
1740 RIGHT.br_startoff = new->br_startoff; in xfs_bmap_add_extent_delay_real()
1847 RIGHT.br_startoff = new_endoff; in xfs_bmap_add_extent_delay_real()
1849 PREV.br_startoff + PREV.br_blockcount - new_endoff; in xfs_bmap_add_extent_delay_real()
1855 PREV.br_blockcount = new->br_startoff - PREV.br_startoff; in xfs_bmap_add_extent_delay_real()
1997 new_endoff = new->br_startoff + new->br_blockcount; in xfs_bmap_add_extent_unwritten_real()
1998 ASSERT(PREV.br_startoff <= new->br_startoff); in xfs_bmap_add_extent_unwritten_real()
1999 ASSERT(PREV.br_startoff + PREV.br_blockcount >= new_endoff); in xfs_bmap_add_extent_unwritten_real()
2005 if (PREV.br_startoff == new->br_startoff) in xfs_bmap_add_extent_unwritten_real()
2007 if (PREV.br_startoff + PREV.br_blockcount == new_endoff) in xfs_bmap_add_extent_unwritten_real()
2021 LEFT.br_startoff + LEFT.br_blockcount == new->br_startoff && in xfs_bmap_add_extent_unwritten_real()
2039 new_endoff == RIGHT.br_startoff && in xfs_bmap_add_extent_unwritten_real()
2227 PREV.br_startoff += new->br_blockcount; in xfs_bmap_add_extent_unwritten_real()
2264 PREV.br_startoff += new->br_blockcount; in xfs_bmap_add_extent_unwritten_real()
2304 RIGHT.br_startoff = new->br_startoff; in xfs_bmap_add_extent_unwritten_real()
2385 PREV.br_blockcount = new->br_startoff - PREV.br_startoff; in xfs_bmap_add_extent_unwritten_real()
2388 r[1].br_startoff = new_endoff; in xfs_bmap_add_extent_unwritten_real()
2390 old.br_startoff + old.br_blockcount - new_endoff; in xfs_bmap_add_extent_unwritten_real()
2533 left.br_startoff + left.br_blockcount == new->br_startoff && in xfs_bmap_add_extent_hole_delay()
2538 new->br_startoff + new->br_blockcount == right.br_startoff && in xfs_bmap_add_extent_hole_delay()
2601 right.br_startoff = new->br_startoff; in xfs_bmap_add_extent_hole_delay()
2682 left.br_startoff + left.br_blockcount == new->br_startoff && in xfs_bmap_add_extent_hole_real()
2689 new->br_startoff + new->br_blockcount == right.br_startoff && in xfs_bmap_add_extent_hole_real()
2784 right.br_startoff = new->br_startoff; in xfs_bmap_add_extent_hole_real()
2905 (orig_off >= gotp->br_startoff) && in xfs_bmap_extsize_align()
2906 (orig_end <= gotp->br_startoff + gotp->br_blockcount)) { in xfs_bmap_extsize_align()
2944 if (prevp->br_startoff != NULLFILEOFF) { in xfs_bmap_extsize_align()
2946 prevo = prevp->br_startoff; in xfs_bmap_extsize_align()
2948 prevo = prevp->br_startoff + prevp->br_blockcount; in xfs_bmap_extsize_align()
2961 if (!eof && gotp->br_startoff != NULLFILEOFF) { in xfs_bmap_extsize_align()
2964 nexto = gotp->br_startoff + gotp->br_blockcount; in xfs_bmap_extsize_align()
2966 nexto = gotp->br_startoff; in xfs_bmap_extsize_align()
3034 if (!eof && gotp->br_startoff != NULLFILEOFF) in xfs_bmap_extsize_align()
3035 ASSERT(align_off + align_alen <= gotp->br_startoff); in xfs_bmap_extsize_align()
3036 if (prevp->br_startoff != NULLFILEOFF) in xfs_bmap_extsize_align()
3037 ASSERT(align_off >= prevp->br_startoff + prevp->br_blockcount); in xfs_bmap_extsize_align()
3069 if (ap->eof && ap->prev.br_startoff != NULLFILEOFF && in xfs_bmap_adjacent()
3078 (ap->prev.br_startoff + ap->prev.br_blockcount); in xfs_bmap_adjacent()
3098 if (ap->prev.br_startoff != NULLFILEOFF && in xfs_bmap_adjacent()
3107 (ap->prev.br_startoff + in xfs_bmap_adjacent()
3137 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()
3912 got.br_startoff = end; in xfs_bmapi_read()
3913 if (got.br_startoff > bno) { in xfs_bmapi_read()
3915 mval->br_startoff = bno; in xfs_bmapi_read()
3918 XFS_FILBLKS_MIN(len, got.br_startoff - bno); in xfs_bmapi_read()
3980 alen = XFS_FILBLKS_MIN(alen, got->br_startoff - aoff); in xfs_bmapi_reserve_delalloc()
3990 prev.br_startoff = NULLFILEOFF; in xfs_bmapi_reserve_delalloc()
4025 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()
4152 bma->got.br_startoff = bma->offset; in xfs_bmapi_allocate()
4178 ASSERT(bma->got.br_startoff <= bma->offset); in xfs_bmapi_allocate()
4179 ASSERT(bma->got.br_startoff + bma->got.br_blockcount >= in xfs_bmapi_allocate()
4389 bma.prev.br_startoff = NULLFILEOFF; in xfs_bmapi_write()
4399 if (eof || bma.got.br_startoff > bno) { in xfs_bmapi_write()
4544 bma.got.br_startoff > offset_fsb) { in xfs_bmapi_convert_delalloc()
4569 bma.offset = bma.got.br_startoff; in xfs_bmapi_convert_delalloc()
4592 bma.prev.br_startoff = NULLFILEOFF; in xfs_bmapi_convert_delalloc()
4674 ASSERT(got.br_startoff > bno); in xfs_bmapi_remap()
4675 ASSERT(got.br_startoff - bno >= len); in xfs_bmapi_remap()
4686 got.br_startoff = bno; in xfs_bmapi_remap()
4820 del_endoff = del->br_startoff + del->br_blockcount; in xfs_bmap_del_extent_delay()
4821 got_endoff = got->br_startoff + got->br_blockcount; in xfs_bmap_del_extent_delay()
4826 ASSERT(got->br_startoff <= del->br_startoff); in xfs_bmap_del_extent_delay()
4847 if (got->br_startoff == del->br_startoff) in xfs_bmap_del_extent_delay()
4864 got->br_startoff = del_endoff; in xfs_bmap_del_extent_delay()
4891 got->br_blockcount = del->br_startoff - got->br_startoff; in xfs_bmap_del_extent_delay()
4903 new.br_startoff = del_endoff; in xfs_bmap_del_extent_delay()
4942 del_endoff = del->br_startoff + del->br_blockcount; in xfs_bmap_del_extent_cow()
4943 got_endoff = got->br_startoff + got->br_blockcount; in xfs_bmap_del_extent_cow()
4946 ASSERT(got->br_startoff <= del->br_startoff); in xfs_bmap_del_extent_cow()
4950 if (got->br_startoff == del->br_startoff) in xfs_bmap_del_extent_cow()
4967 got->br_startoff = del_endoff; in xfs_bmap_del_extent_cow()
4983 got->br_blockcount = del->br_startoff - got->br_startoff; in xfs_bmap_del_extent_cow()
4985 new.br_startoff = del_endoff; in xfs_bmap_del_extent_cow()
5036 ASSERT(got.br_startoff <= del->br_startoff); in xfs_bmap_del_extent_real()
5037 del_endoff = del->br_startoff + del->br_blockcount; in xfs_bmap_del_extent_real()
5038 got_endoff = got.br_startoff + got.br_blockcount; in xfs_bmap_del_extent_real()
5055 del->br_startoff > got.br_startoff && del_endoff < got_endoff) in xfs_bmap_del_extent_real()
5099 if (got.br_startoff == del->br_startoff) in xfs_bmap_del_extent_real()
5129 got.br_startoff = del_endoff; in xfs_bmap_del_extent_real()
5162 got.br_blockcount = del->br_startoff - got.br_startoff; in xfs_bmap_del_extent_real()
5165 new.br_startoff = del_endoff; in xfs_bmap_del_extent_real()
5355 if (got.br_startoff > end && in __xfs_bunmapi()
5365 got.br_startoff + got.br_blockcount - 1); in __xfs_bunmapi()
5375 if (got.br_startoff < start) { in __xfs_bunmapi()
5376 del.br_startoff = start; in __xfs_bunmapi()
5377 del.br_blockcount -= start - got.br_startoff; in __xfs_bunmapi()
5379 del.br_startblock += start - got.br_startoff; in __xfs_bunmapi()
5381 if (del.br_startoff + del.br_blockcount > end + 1) in __xfs_bunmapi()
5382 del.br_blockcount = end + 1 - del.br_startoff; in __xfs_bunmapi()
5405 if (end < got.br_startoff && in __xfs_bunmapi()
5423 del.br_startoff += del.br_blockcount - mod; in __xfs_bunmapi()
5446 del.br_startoff += off; in __xfs_bunmapi()
5448 } else if (del.br_startoff == start && in __xfs_bunmapi()
5457 if (got.br_startoff > end && in __xfs_bunmapi()
5480 del.br_startoff - mod, in __xfs_bunmapi()
5481 prev.br_startoff); in __xfs_bunmapi()
5482 mod = unwrite_start - prev.br_startoff; in __xfs_bunmapi()
5483 prev.br_startoff = unwrite_start; in __xfs_bunmapi()
5519 end = del.br_startoff - 1; in __xfs_bunmapi()
5526 (got.br_startoff > end && in __xfs_bunmapi()
5607 startoff = got->br_startoff - shift; in xfs_bmse_can_merge()
5613 if ((left->br_startoff + left->br_blockcount != startoff) || in xfs_bmse_can_merge()
5707 new.br_startoff = left->br_startoff + left->br_blockcount; in xfs_bmse_merge()
5729 got->br_startoff = startoff; in xfs_bmap_shift_update_extent()
5800 new_startoff = got.br_startoff - offset_shift_fsb; in xfs_bmap_collapse_extents()
5802 if (new_startoff < prev.br_startoff + prev.br_blockcount) { in xfs_bmap_collapse_extents()
5816 if (got.br_startoff < offset_shift_fsb) { in xfs_bmap_collapse_extents()
5833 *next_fsb = got.br_startoff; in xfs_bmap_collapse_extents()
5860 if (!error && !is_empty && got.br_startoff >= off && in xfs_bmap_can_insert_extents()
5861 ((got.br_startoff + shift) & BMBT_STARTOFF_MASK) < got.br_startoff) in xfs_bmap_can_insert_extents()
5909 stop_fsb > got.br_startoff) { in xfs_bmap_insert_extents()
5924 if (XFS_IS_CORRUPT(mp, stop_fsb > got.br_startoff)) { in xfs_bmap_insert_extents()
5929 new_startoff = got.br_startoff + offset_shift_fsb; in xfs_bmap_insert_extents()
5931 if (new_startoff + got.br_blockcount > next.br_startoff) { in xfs_bmap_insert_extents()
5952 stop_fsb >= got.br_startoff + got.br_blockcount) { in xfs_bmap_insert_extents()
5957 *next_fsb = got.br_startoff; in xfs_bmap_insert_extents()
6007 got.br_startoff >= split_fsb) in xfs_bmap_split_extent()
6010 gotblkcnt = split_fsb - got.br_startoff; in xfs_bmap_split_extent()
6011 new.br_startoff = split_fsb; in xfs_bmap_split_extent()
6110 bmap->br_startoff, in __xfs_bmap_add()
6171 bmap->br_startoff, bmap->br_blockcount, in xfs_bmap_finish_one()
6183 error = xfs_bmapi_remap(tp, bi->bi_owner, bmap->br_startoff, in xfs_bmap_finish_one()
6188 error = __xfs_bunmapi(tp, bi->bi_owner, bmap->br_startoff, in xfs_bmap_finish_one()
6208 if (!xfs_verify_fileext(mp, irec->br_startoff, irec->br_blockcount)) in xfs_bmap_validate_extent()