Lines Matching refs:br_startoff

116 	cur->bc_rec.b.br_startoff = 0;  in xfs_bmbt_lookup_first()
281 ASSERT(be64_to_cpu(prevp->br_startoff) < in xfs_check_block()
282 be64_to_cpu(keyp->br_startoff)); in xfs_check_block()
502 ASSERT(mval[i].br_startoff >= bno); in xfs_bmap_validate_ret()
504 ASSERT(mval[i].br_startoff + mval[i].br_blockcount <= in xfs_bmap_validate_ret()
507 ASSERT(mval[i].br_startoff < bno + len); in xfs_bmap_validate_ret()
508 ASSERT(mval[i].br_startoff + mval[i].br_blockcount > in xfs_bmap_validate_ret()
512 mval[i - 1].br_startoff + mval[i - 1].br_blockcount == in xfs_bmap_validate_ret()
513 mval[i].br_startoff); in xfs_bmap_validate_ret()
763 kp->br_startoff = cpu_to_be64(xfs_bmbt_disk_get_startoff(arp)); in xfs_bmap_extents_to_btree()
899 rec.br_startoff = 0; in xfs_bmap_local_to_extents()
1327 if (got.br_startoff >= lowest + len && in xfs_bmap_first_unused()
1328 got.br_startoff - max >= len) in xfs_bmap_first_unused()
1330 lastaddr = got.br_startoff + got.br_blockcount; in xfs_bmap_first_unused()
1437 bma->aeof = bma->offset >= rec.br_startoff + rec.br_blockcount || in xfs_bmap_isaeof()
1438 (bma->offset >= rec.br_startoff && in xfs_bmap_isaeof()
1471 *last_block = rec.br_startoff + rec.br_blockcount; in xfs_bmap_last_offset()
1502 rval = s.br_startoff == 0 && s.br_blockcount == 1; in xfs_bmap_one_block()
1557 new_endoff = new->br_startoff + new->br_blockcount; in xfs_bmap_add_extent_delay_real()
1559 ASSERT(PREV.br_startoff <= new->br_startoff); in xfs_bmap_add_extent_delay_real()
1560 ASSERT(PREV.br_startoff + PREV.br_blockcount >= new_endoff); in xfs_bmap_add_extent_delay_real()
1569 if (PREV.br_startoff == new->br_startoff) in xfs_bmap_add_extent_delay_real()
1571 if (PREV.br_startoff + PREV.br_blockcount == new_endoff) in xfs_bmap_add_extent_delay_real()
1585 LEFT.br_startoff + LEFT.br_blockcount == new->br_startoff && in xfs_bmap_add_extent_delay_real()
1603 new_endoff == RIGHT.br_startoff && in xfs_bmap_add_extent_delay_real()
1749 PREV.br_startoff += new->br_blockcount; in xfs_bmap_add_extent_delay_real()
1804 PREV.br_startoff = new_endoff; in xfs_bmap_add_extent_delay_real()
1818 RIGHT.br_startoff = new->br_startoff; in xfs_bmap_add_extent_delay_real()
1915 RIGHT.br_startoff = new_endoff; in xfs_bmap_add_extent_delay_real()
1917 PREV.br_startoff + PREV.br_blockcount - new_endoff; in xfs_bmap_add_extent_delay_real()
1923 PREV.br_blockcount = new->br_startoff - PREV.br_startoff; in xfs_bmap_add_extent_delay_real()
2059 new_endoff = new->br_startoff + new->br_blockcount; in xfs_bmap_add_extent_unwritten_real()
2060 ASSERT(PREV.br_startoff <= new->br_startoff); in xfs_bmap_add_extent_unwritten_real()
2061 ASSERT(PREV.br_startoff + PREV.br_blockcount >= new_endoff); in xfs_bmap_add_extent_unwritten_real()
2067 if (PREV.br_startoff == new->br_startoff) in xfs_bmap_add_extent_unwritten_real()
2069 if (PREV.br_startoff + PREV.br_blockcount == new_endoff) in xfs_bmap_add_extent_unwritten_real()
2083 LEFT.br_startoff + LEFT.br_blockcount == new->br_startoff && in xfs_bmap_add_extent_unwritten_real()
2101 new_endoff == RIGHT.br_startoff && in xfs_bmap_add_extent_unwritten_real()
2256 PREV.br_startoff += new->br_blockcount; in xfs_bmap_add_extent_unwritten_real()
2290 PREV.br_startoff += new->br_blockcount; in xfs_bmap_add_extent_unwritten_real()
2324 RIGHT.br_startoff = new->br_startoff; in xfs_bmap_add_extent_unwritten_real()
2394 PREV.br_blockcount = new->br_startoff - PREV.br_startoff; in xfs_bmap_add_extent_unwritten_real()
2397 r[1].br_startoff = new_endoff; in xfs_bmap_add_extent_unwritten_real()
2399 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()
2681 left.br_startoff + left.br_blockcount == new->br_startoff && in xfs_bmap_add_extent_hole_real()
2688 new->br_startoff + new->br_blockcount == right.br_startoff && in xfs_bmap_add_extent_hole_real()
2772 right.br_startoff = new->br_startoff; in xfs_bmap_add_extent_hole_real()
2887 (orig_off >= gotp->br_startoff) && in xfs_bmap_extsize_align()
2888 (orig_end <= gotp->br_startoff + gotp->br_blockcount)) { in xfs_bmap_extsize_align()
2926 if (prevp->br_startoff != NULLFILEOFF) { in xfs_bmap_extsize_align()
2928 prevo = prevp->br_startoff; in xfs_bmap_extsize_align()
2930 prevo = prevp->br_startoff + prevp->br_blockcount; in xfs_bmap_extsize_align()
2943 if (!eof && gotp->br_startoff != NULLFILEOFF) { in xfs_bmap_extsize_align()
2946 nexto = gotp->br_startoff + gotp->br_blockcount; in xfs_bmap_extsize_align()
2948 nexto = gotp->br_startoff; in xfs_bmap_extsize_align()
3016 if (!eof && gotp->br_startoff != NULLFILEOFF) in xfs_bmap_extsize_align()
3017 ASSERT(align_off + align_alen <= gotp->br_startoff); in xfs_bmap_extsize_align()
3018 if (prevp->br_startoff != NULLFILEOFF) in xfs_bmap_extsize_align()
3019 ASSERT(align_off >= prevp->br_startoff + prevp->br_blockcount); in xfs_bmap_extsize_align()
3056 if (ap->eof && ap->prev.br_startoff != NULLFILEOFF && in xfs_bmap_adjacent()
3065 (ap->prev.br_startoff + ap->prev.br_blockcount); in xfs_bmap_adjacent()
3085 if (ap->prev.br_startoff != NULLFILEOFF && in xfs_bmap_adjacent()
3094 (ap->prev.br_startoff + in xfs_bmap_adjacent()
3131 adjust = gotdiff = ap->got.br_startoff - ap->offset; in xfs_bmap_adjacent()
3651 if (irec->br_startoff + irec->br_blockcount <= bno || in xfs_trim_extent()
3652 irec->br_startoff >= end) { in xfs_trim_extent()
3657 if (irec->br_startoff < bno) { in xfs_trim_extent()
3658 distance = bno - irec->br_startoff; in xfs_trim_extent()
3664 irec->br_startoff += distance; in xfs_trim_extent()
3668 if (end < irec->br_startoff + irec->br_blockcount) { in xfs_trim_extent()
3669 distance = irec->br_startoff + irec->br_blockcount - end; in xfs_trim_extent()
3700 got->br_startoff + got->br_blockcount <= obno) { in xfs_bmapi_trim_map()
3711 mval->br_startoff = *bno; in xfs_bmapi_trim_map()
3716 (*bno - got->br_startoff); in xfs_bmapi_trim_map()
3725 got->br_blockcount - (*bno - got->br_startoff)); in xfs_bmapi_trim_map()
3747 ((mval->br_startoff + mval->br_blockcount) <= end)); in xfs_bmapi_update_map()
3749 (mval->br_startoff < obno)); in xfs_bmapi_update_map()
3751 *bno = mval->br_startoff + mval->br_blockcount; in xfs_bmapi_update_map()
3753 if (*n > 0 && mval->br_startoff == mval[-1].br_startoff) { in xfs_bmapi_update_map()
3766 ASSERT(mval->br_startoff == in xfs_bmapi_update_map()
3767 mval[-1].br_startoff + mval[-1].br_blockcount); in xfs_bmapi_update_map()
3772 mval->br_startoff == in xfs_bmapi_update_map()
3773 mval[-1].br_startoff + mval[-1].br_blockcount) { in xfs_bmapi_update_map()
3777 ((mval->br_startoff + mval->br_blockcount) <= in xfs_bmapi_update_map()
3830 mval->br_startoff = bno; in xfs_bmapi_read()
3852 got.br_startoff = end; in xfs_bmapi_read()
3853 if (got.br_startoff > bno) { in xfs_bmapi_read()
3855 mval->br_startoff = bno; in xfs_bmapi_read()
3858 XFS_FILBLKS_MIN(len, got.br_startoff - bno); in xfs_bmapi_read()
3920 alen = XFS_FILBLKS_MIN(alen, got->br_startoff - aoff); in xfs_bmapi_reserve_delalloc()
3930 prev.br_startoff = NULLFILEOFF; in xfs_bmapi_reserve_delalloc()
3965 got->br_startoff = aoff; in xfs_bmapi_reserve_delalloc()
4011 bma->offset = bma->got.br_startoff; in xfs_bmapi_allocate()
4017 bma->got.br_startoff - bma->offset); in xfs_bmapi_allocate()
4069 bma->got.br_startoff = bma->offset; in xfs_bmapi_allocate()
4106 ASSERT(bma->got.br_startoff <= bma->offset); in xfs_bmapi_allocate()
4107 ASSERT(bma->got.br_startoff + bma->got.br_blockcount >= in xfs_bmapi_allocate()
4294 bma.prev.br_startoff = NULLFILEOFF; in xfs_bmapi_write()
4304 if (eof || bma.got.br_startoff > bno) { in xfs_bmapi_write()
4501 ASSERT(got.br_startoff > bno); in xfs_bmapi_remap()
4502 ASSERT(got.br_startoff - bno >= len); in xfs_bmapi_remap()
4513 got.br_startoff = bno; in xfs_bmapi_remap()
4653 del_endoff = del->br_startoff + del->br_blockcount; in xfs_bmap_del_extent_delay()
4654 got_endoff = got->br_startoff + got->br_blockcount; in xfs_bmap_del_extent_delay()
4659 ASSERT(got->br_startoff <= del->br_startoff); in xfs_bmap_del_extent_delay()
4681 if (got->br_startoff == del->br_startoff) in xfs_bmap_del_extent_delay()
4698 got->br_startoff = del_endoff; in xfs_bmap_del_extent_delay()
4725 got->br_blockcount = del->br_startoff - got->br_startoff; in xfs_bmap_del_extent_delay()
4737 new.br_startoff = del_endoff; in xfs_bmap_del_extent_delay()
4774 del_endoff = del->br_startoff + del->br_blockcount; in xfs_bmap_del_extent_cow()
4775 got_endoff = got->br_startoff + got->br_blockcount; in xfs_bmap_del_extent_cow()
4778 ASSERT(got->br_startoff <= del->br_startoff); in xfs_bmap_del_extent_cow()
4782 if (got->br_startoff == del->br_startoff) in xfs_bmap_del_extent_cow()
4799 got->br_startoff = del_endoff; in xfs_bmap_del_extent_cow()
4815 got->br_blockcount = del->br_startoff - got->br_startoff; in xfs_bmap_del_extent_cow()
4817 new.br_startoff = del_endoff; in xfs_bmap_del_extent_cow()
4868 ASSERT(got.br_startoff <= del->br_startoff); in xfs_bmap_del_extent_real()
4869 del_endoff = del->br_startoff + del->br_blockcount; in xfs_bmap_del_extent_real()
4870 got_endoff = got.br_startoff + got.br_blockcount; in xfs_bmap_del_extent_real()
4888 del->br_startoff > got.br_startoff && del_endoff < got_endoff) in xfs_bmap_del_extent_real()
4924 if (got.br_startoff == del->br_startoff) in xfs_bmap_del_extent_real()
4951 got.br_startoff = del_endoff; in xfs_bmap_del_extent_real()
4983 got.br_blockcount = del->br_startoff - got.br_startoff; in xfs_bmap_del_extent_real()
4986 new.br_startoff = del_endoff; in xfs_bmap_del_extent_real()
5188 if (got.br_startoff > end && in __xfs_bunmapi()
5198 got.br_startoff + got.br_blockcount - 1); in __xfs_bunmapi()
5218 if (got.br_startoff < start) { in __xfs_bunmapi()
5219 del.br_startoff = start; in __xfs_bunmapi()
5220 del.br_blockcount -= start - got.br_startoff; in __xfs_bunmapi()
5222 del.br_startblock += start - got.br_startoff; in __xfs_bunmapi()
5224 if (del.br_startoff + del.br_blockcount > end + 1) in __xfs_bunmapi()
5225 del.br_blockcount = end + 1 - del.br_startoff; in __xfs_bunmapi()
5229 del.br_startoff += del.br_blockcount - max_len; in __xfs_bunmapi()
5257 if (end < got.br_startoff && in __xfs_bunmapi()
5275 del.br_startoff += del.br_blockcount - mod; in __xfs_bunmapi()
5297 del.br_startoff += mod; in __xfs_bunmapi()
5299 } else if ((del.br_startoff == start && in __xfs_bunmapi()
5309 if (got.br_startoff > end && in __xfs_bunmapi()
5330 if (prev.br_startoff < start) { in __xfs_bunmapi()
5331 mod = start - prev.br_startoff; in __xfs_bunmapi()
5334 prev.br_startoff = start; in __xfs_bunmapi()
5370 end = del.br_startoff - 1; in __xfs_bunmapi()
5377 (got.br_startoff > end && in __xfs_bunmapi()
5471 startoff = got->br_startoff - shift; in xfs_bmse_can_merge()
5477 if ((left->br_startoff + left->br_blockcount != startoff) || in xfs_bmse_can_merge()
5565 new.br_startoff = left->br_startoff + left->br_blockcount; in xfs_bmse_merge()
5586 got->br_startoff = startoff; in xfs_bmap_shift_update_extent()
5660 new_startoff = got.br_startoff - offset_shift_fsb; in xfs_bmap_collapse_extents()
5662 if (new_startoff < prev.br_startoff + prev.br_blockcount) { in xfs_bmap_collapse_extents()
5676 if (got.br_startoff < offset_shift_fsb) { in xfs_bmap_collapse_extents()
5693 *next_fsb = got.br_startoff; in xfs_bmap_collapse_extents()
5720 if (!error && !is_empty && got.br_startoff >= off && in xfs_bmap_can_insert_extents()
5721 ((got.br_startoff + shift) & BMBT_STARTOFF_MASK) < got.br_startoff) in xfs_bmap_can_insert_extents()
5774 stop_fsb > got.br_startoff) { in xfs_bmap_insert_extents()
5787 if (stop_fsb >= got.br_startoff + got.br_blockcount) { in xfs_bmap_insert_extents()
5792 new_startoff = got.br_startoff + offset_shift_fsb; in xfs_bmap_insert_extents()
5794 if (new_startoff + got.br_blockcount > next.br_startoff) { in xfs_bmap_insert_extents()
5815 stop_fsb >= got.br_startoff + got.br_blockcount) { in xfs_bmap_insert_extents()
5820 *next_fsb = got.br_startoff; in xfs_bmap_insert_extents()
5877 got.br_startoff >= split_fsb) in xfs_bmap_split_extent_at()
5880 gotblkcnt = split_fsb - got.br_startoff; in xfs_bmap_split_extent_at()
5881 new.br_startoff = split_fsb; in xfs_bmap_split_extent_at()
6000 bmap->br_startoff, in __xfs_bmap_add()