Lines Matching refs:br_startoff

125 	cur->bc_rec.b.br_startoff = 0;  in xfs_bmbt_lookup_first()
303 ASSERT(be64_to_cpu(prevp->br_startoff) < in xfs_check_block()
304 be64_to_cpu(keyp->br_startoff)); in xfs_check_block()
524 ASSERT(mval[i].br_startoff >= bno); in xfs_bmap_validate_ret()
526 ASSERT(mval[i].br_startoff + mval[i].br_blockcount <= in xfs_bmap_validate_ret()
529 ASSERT(mval[i].br_startoff < bno + len); in xfs_bmap_validate_ret()
530 ASSERT(mval[i].br_startoff + mval[i].br_blockcount > in xfs_bmap_validate_ret()
534 mval[i - 1].br_startoff + mval[i - 1].br_blockcount == in xfs_bmap_validate_ret()
535 mval[i].br_startoff); in xfs_bmap_validate_ret()
727 kp->br_startoff = cpu_to_be64(xfs_bmbt_disk_get_startoff(arp)); in xfs_bmap_extents_to_btree()
863 rec.br_startoff = 0; in xfs_bmap_local_to_extents()
1124 irec->br_startoff, irec->br_startblock, irec->br_blockcount, in xfs_bmap_complain_bad_rec()
1273 if (got.br_startoff >= lowest + len && in xfs_bmap_first_unused()
1274 got.br_startoff - max >= len) in xfs_bmap_first_unused()
1276 lastaddr = got.br_startoff + got.br_blockcount; in xfs_bmap_first_unused()
1381 bma->aeof = bma->offset >= rec.br_startoff + rec.br_blockcount || in xfs_bmap_isaeof()
1382 (bma->offset >= rec.br_startoff && in xfs_bmap_isaeof()
1417 *last_block = rec.br_startoff + rec.br_blockcount; in xfs_bmap_last_offset()
1481 new_endoff = new->br_startoff + new->br_blockcount; in xfs_bmap_add_extent_delay_real()
1483 ASSERT(PREV.br_startoff <= new->br_startoff); in xfs_bmap_add_extent_delay_real()
1484 ASSERT(PREV.br_startoff + PREV.br_blockcount >= new_endoff); in xfs_bmap_add_extent_delay_real()
1493 if (PREV.br_startoff == new->br_startoff) in xfs_bmap_add_extent_delay_real()
1495 if (PREV.br_startoff + PREV.br_blockcount == new_endoff) in xfs_bmap_add_extent_delay_real()
1509 LEFT.br_startoff + LEFT.br_blockcount == new->br_startoff && in xfs_bmap_add_extent_delay_real()
1528 new_endoff == RIGHT.br_startoff && in xfs_bmap_add_extent_delay_real()
1710 PREV.br_startoff += new->br_blockcount; in xfs_bmap_add_extent_delay_real()
1779 PREV.br_startoff = new_endoff; in xfs_bmap_add_extent_delay_real()
1793 RIGHT.br_startoff = new->br_startoff; in xfs_bmap_add_extent_delay_real()
1905 RIGHT.br_startoff = new_endoff; in xfs_bmap_add_extent_delay_real()
1907 PREV.br_startoff + PREV.br_blockcount - new_endoff; in xfs_bmap_add_extent_delay_real()
1913 PREV.br_blockcount = new->br_startoff - PREV.br_startoff; in xfs_bmap_add_extent_delay_real()
2056 new_endoff = new->br_startoff + new->br_blockcount; in xfs_bmap_add_extent_unwritten_real()
2057 ASSERT(PREV.br_startoff <= new->br_startoff); in xfs_bmap_add_extent_unwritten_real()
2058 ASSERT(PREV.br_startoff + PREV.br_blockcount >= new_endoff); in xfs_bmap_add_extent_unwritten_real()
2064 if (PREV.br_startoff == new->br_startoff) in xfs_bmap_add_extent_unwritten_real()
2066 if (PREV.br_startoff + PREV.br_blockcount == new_endoff) in xfs_bmap_add_extent_unwritten_real()
2080 LEFT.br_startoff + LEFT.br_blockcount == new->br_startoff && in xfs_bmap_add_extent_unwritten_real()
2099 new_endoff == RIGHT.br_startoff && in xfs_bmap_add_extent_unwritten_real()
2300 PREV.br_startoff += new->br_blockcount; in xfs_bmap_add_extent_unwritten_real()
2338 PREV.br_startoff += new->br_blockcount; in xfs_bmap_add_extent_unwritten_real()
2380 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()
2626 left.br_startoff + left.br_blockcount == new->br_startoff && in xfs_bmap_add_extent_hole_real()
2634 new->br_startoff + new->br_blockcount == right.br_startoff && in xfs_bmap_add_extent_hole_real()
2734 right.br_startoff = new->br_startoff; in xfs_bmap_add_extent_hole_real()
2858 (orig_off >= gotp->br_startoff) && in xfs_bmap_extsize_align()
2859 (orig_end <= gotp->br_startoff + gotp->br_blockcount)) { in xfs_bmap_extsize_align()
2897 if (prevp->br_startoff != NULLFILEOFF) { in xfs_bmap_extsize_align()
2899 prevo = prevp->br_startoff; in xfs_bmap_extsize_align()
2901 prevo = prevp->br_startoff + prevp->br_blockcount; in xfs_bmap_extsize_align()
2914 if (!eof && gotp->br_startoff != NULLFILEOFF) { in xfs_bmap_extsize_align()
2917 nexto = gotp->br_startoff + gotp->br_blockcount; in xfs_bmap_extsize_align()
2919 nexto = gotp->br_startoff; in xfs_bmap_extsize_align()
2987 if (!eof && gotp->br_startoff != NULLFILEOFF) in xfs_bmap_extsize_align()
2988 ASSERT(align_off + align_alen <= gotp->br_startoff); in xfs_bmap_extsize_align()
2989 if (prevp->br_startoff != NULLFILEOFF) in xfs_bmap_extsize_align()
2990 ASSERT(align_off >= prevp->br_startoff + prevp->br_blockcount); in xfs_bmap_extsize_align()
3035 if (ap->eof && ap->prev.br_startoff != NULLFILEOFF && in xfs_bmap_adjacent()
3045 (ap->prev.br_startoff + ap->prev.br_blockcount); in xfs_bmap_adjacent()
3066 if (ap->prev.br_startoff != NULLFILEOFF && in xfs_bmap_adjacent()
3076 (ap->prev.br_startoff + in xfs_bmap_adjacent()
3106 adjust = gotdiff = ap->got.br_startoff - ap->offset; in xfs_bmap_adjacent()
3696 if (irec->br_startoff + irec->br_blockcount <= bno || in xfs_trim_extent()
3697 irec->br_startoff >= end) { in xfs_trim_extent()
3702 if (irec->br_startoff < bno) { in xfs_trim_extent()
3703 distance = bno - irec->br_startoff; in xfs_trim_extent()
3709 irec->br_startoff += distance; in xfs_trim_extent()
3713 if (end < irec->br_startoff + irec->br_blockcount) { in xfs_trim_extent()
3714 distance = irec->br_startoff + irec->br_blockcount - end; in xfs_trim_extent()
3734 got->br_startoff + got->br_blockcount <= obno) { in xfs_bmapi_trim_map()
3745 mval->br_startoff = *bno; in xfs_bmapi_trim_map()
3750 (*bno - got->br_startoff); in xfs_bmapi_trim_map()
3759 got->br_blockcount - (*bno - got->br_startoff)); in xfs_bmapi_trim_map()
3781 ((mval->br_startoff + mval->br_blockcount) <= end)); in xfs_bmapi_update_map()
3783 (mval->br_startoff < obno)); in xfs_bmapi_update_map()
3785 *bno = mval->br_startoff + mval->br_blockcount; in xfs_bmapi_update_map()
3787 if (*n > 0 && mval->br_startoff == mval[-1].br_startoff) { in xfs_bmapi_update_map()
3800 ASSERT(mval->br_startoff == in xfs_bmapi_update_map()
3801 mval[-1].br_startoff + mval[-1].br_blockcount); in xfs_bmapi_update_map()
3806 mval->br_startoff == in xfs_bmapi_update_map()
3807 mval[-1].br_startoff + mval[-1].br_blockcount) { in xfs_bmapi_update_map()
3811 ((mval->br_startoff + mval->br_blockcount) <= in xfs_bmapi_update_map()
3874 got.br_startoff = end; in xfs_bmapi_read()
3875 if (got.br_startoff > bno) { in xfs_bmapi_read()
3877 mval->br_startoff = bno; in xfs_bmapi_read()
3880 XFS_FILBLKS_MIN(len, got.br_startoff - bno); in xfs_bmapi_read()
3975 bma->got.br_startoff = bma->offset; in xfs_bmapi_allocate()
3999 ASSERT(bma->got.br_startoff <= bma->offset); in xfs_bmapi_allocate()
4000 ASSERT(bma->got.br_startoff + bma->got.br_blockcount >= in xfs_bmapi_allocate()
4220 bma.prev.br_startoff = NULLFILEOFF; in xfs_bmapi_write()
4230 if (eof || bma.got.br_startoff > bno) { in xfs_bmapi_write()
4268 (bno - bma.got.br_startoff)); in xfs_bmapi_write()
4272 bma.got.br_startoff - bno); in xfs_bmapi_write()
4400 bma.got.br_startoff > offset_fsb) { in xfs_bmapi_convert_one_delalloc()
4433 bma.offset = bma.got.br_startoff; in xfs_bmapi_convert_one_delalloc()
4454 bma.prev.br_startoff = NULLFILEOFF; in xfs_bmapi_convert_one_delalloc()
4562 ASSERT(got.br_startoff > bno); in xfs_bmapi_remap()
4563 ASSERT(got.br_startoff - bno >= len); in xfs_bmapi_remap()
4573 got.br_startoff = bno; in xfs_bmapi_remap()
4692 del_endoff = del->br_startoff + del->br_blockcount; in xfs_bmap_del_extent_delay()
4693 got_endoff = got->br_startoff + got->br_blockcount; in xfs_bmap_del_extent_delay()
4698 ASSERT(got->br_startoff <= del->br_startoff); in xfs_bmap_del_extent_delay()
4709 if (got->br_startoff == del->br_startoff) in xfs_bmap_del_extent_delay()
4726 got->br_startoff = del_endoff; in xfs_bmap_del_extent_delay()
4753 got->br_blockcount = del->br_startoff - got->br_startoff; in xfs_bmap_del_extent_delay()
4781 new.br_startoff = del_endoff; in xfs_bmap_del_extent_delay()
4829 del_endoff = del->br_startoff + del->br_blockcount; in xfs_bmap_del_extent_cow()
4830 got_endoff = got->br_startoff + got->br_blockcount; in xfs_bmap_del_extent_cow()
4833 ASSERT(got->br_startoff <= del->br_startoff); in xfs_bmap_del_extent_cow()
4837 if (got->br_startoff == del->br_startoff) in xfs_bmap_del_extent_cow()
4854 got->br_startoff = del_endoff; in xfs_bmap_del_extent_cow()
4870 got->br_blockcount = del->br_startoff - got->br_startoff; in xfs_bmap_del_extent_cow()
4872 new.br_startoff = del_endoff; in xfs_bmap_del_extent_cow()
4951 ASSERT(got.br_startoff <= del->br_startoff); in xfs_bmap_del_extent_real()
4952 del_endoff = del->br_startoff + del->br_blockcount; in xfs_bmap_del_extent_real()
4953 got_endoff = got.br_startoff + got.br_blockcount; in xfs_bmap_del_extent_real()
4969 del->br_startoff > got.br_startoff && del_endoff < got_endoff) in xfs_bmap_del_extent_real()
4990 if (got.br_startoff == del->br_startoff) in xfs_bmap_del_extent_real()
5020 got.br_startoff = del_endoff; in xfs_bmap_del_extent_real()
5053 got.br_blockcount = del->br_startoff - got.br_startoff; in xfs_bmap_del_extent_real()
5056 new.br_startoff = del_endoff; in xfs_bmap_del_extent_real()
5254 if (got.br_startoff > end && in __xfs_bunmapi()
5264 got.br_startoff + got.br_blockcount - 1); in __xfs_bunmapi()
5274 if (got.br_startoff < start) { in __xfs_bunmapi()
5275 del.br_startoff = start; in __xfs_bunmapi()
5276 del.br_blockcount -= start - got.br_startoff; in __xfs_bunmapi()
5278 del.br_startblock += start - got.br_startoff; in __xfs_bunmapi()
5280 if (del.br_startoff + del.br_blockcount > end + 1) in __xfs_bunmapi()
5281 del.br_blockcount = end + 1 - del.br_startoff; in __xfs_bunmapi()
5304 if (end < got.br_startoff && in __xfs_bunmapi()
5322 del.br_startoff += del.br_blockcount - mod; in __xfs_bunmapi()
5346 del.br_startoff += off; in __xfs_bunmapi()
5348 } else if (del.br_startoff == start && in __xfs_bunmapi()
5357 if (got.br_startoff > end && in __xfs_bunmapi()
5380 del.br_startoff - mod, in __xfs_bunmapi()
5381 prev.br_startoff); in __xfs_bunmapi()
5382 mod = unwrite_start - prev.br_startoff; in __xfs_bunmapi()
5383 prev.br_startoff = unwrite_start; in __xfs_bunmapi()
5418 end = del.br_startoff - 1; in __xfs_bunmapi()
5425 (got.br_startoff > end && in __xfs_bunmapi()
5508 startoff = got->br_startoff - shift; in xfs_bmse_can_merge()
5514 if ((left->br_startoff + left->br_blockcount != startoff) || in xfs_bmse_can_merge()
5614 new.br_startoff = left->br_startoff + left->br_blockcount; in xfs_bmse_merge()
5636 got->br_startoff = startoff; in xfs_bmap_shift_update_extent()
5709 new_startoff = got.br_startoff - offset_shift_fsb; in xfs_bmap_collapse_extents()
5711 if (new_startoff < prev.br_startoff + prev.br_blockcount) { in xfs_bmap_collapse_extents()
5726 if (got.br_startoff < offset_shift_fsb) { in xfs_bmap_collapse_extents()
5743 *next_fsb = got.br_startoff; in xfs_bmap_collapse_extents()
5770 if (!error && !is_empty && got.br_startoff >= off && in xfs_bmap_can_insert_extents()
5771 ((got.br_startoff + shift) & BMBT_STARTOFF_MASK) < got.br_startoff) in xfs_bmap_can_insert_extents()
5818 stop_fsb > got.br_startoff) { in xfs_bmap_insert_extents()
5834 if (XFS_IS_CORRUPT(mp, stop_fsb > got.br_startoff)) { in xfs_bmap_insert_extents()
5840 new_startoff = got.br_startoff + offset_shift_fsb; in xfs_bmap_insert_extents()
5842 if (new_startoff + got.br_blockcount > next.br_startoff) { in xfs_bmap_insert_extents()
5864 stop_fsb >= got.br_startoff + got.br_blockcount) { in xfs_bmap_insert_extents()
5869 *next_fsb = got.br_startoff; in xfs_bmap_insert_extents()
5920 got.br_startoff >= split_fsb) in xfs_bmap_split_extent()
5923 gotblkcnt = split_fsb - got.br_startoff; in xfs_bmap_split_extent()
5924 new.br_startoff = split_fsb; in xfs_bmap_split_extent()
6075 error = xfs_bmapi_remap(tp, bi->bi_owner, bmap->br_startoff, in xfs_bmap_finish_one()
6081 error = __xfs_bunmapi(tp, bi->bi_owner, bmap->br_startoff, in xfs_bmap_finish_one()
6102 if (!xfs_verify_fileext(mp, irec->br_startoff, irec->br_blockcount)) in xfs_bmap_validate_extent_raw()