• Home
  • Raw
  • Download

Lines Matching refs:br_startoff

231 	cur->bc_rec.b.br_startoff = off;  in xfs_bmbt_lookup_eq()
245 cur->bc_rec.b.br_startoff = off; in xfs_bmbt_lookup_ge()
436 new_endoff = new->br_startoff + new->br_blockcount; in xfs_bmap_add_extent_delay_real()
437 ASSERT(PREV.br_startoff <= new->br_startoff); in xfs_bmap_add_extent_delay_real()
438 ASSERT(PREV.br_startoff + PREV.br_blockcount >= new_endoff); in xfs_bmap_add_extent_delay_real()
447 if (PREV.br_startoff == new->br_startoff) in xfs_bmap_add_extent_delay_real()
449 if (PREV.br_startoff + PREV.br_blockcount == new_endoff) in xfs_bmap_add_extent_delay_real()
465 LEFT.br_startoff + LEFT.br_blockcount == new->br_startoff && in xfs_bmap_add_extent_delay_real()
485 new_endoff == RIGHT.br_startoff && in xfs_bmap_add_extent_delay_real()
522 error = xfs_bmbt_lookup_eq(bma->cur, RIGHT.br_startoff, in xfs_bmap_add_extent_delay_real()
536 error = xfs_bmbt_update(bma->cur, LEFT.br_startoff, in xfs_bmap_add_extent_delay_real()
563 error = xfs_bmbt_lookup_eq(bma->cur, LEFT.br_startoff, in xfs_bmap_add_extent_delay_real()
569 error = xfs_bmbt_update(bma->cur, LEFT.br_startoff, in xfs_bmap_add_extent_delay_real()
594 error = xfs_bmbt_lookup_eq(bma->cur, RIGHT.br_startoff, in xfs_bmap_add_extent_delay_real()
600 error = xfs_bmbt_update(bma->cur, PREV.br_startoff, in xfs_bmap_add_extent_delay_real()
624 error = xfs_bmbt_lookup_eq(bma->cur, new->br_startoff, in xfs_bmap_add_extent_delay_real()
647 PREV.br_startoff + new->br_blockcount); in xfs_bmap_add_extent_delay_real()
657 error = xfs_bmbt_lookup_eq(bma->cur, LEFT.br_startoff, in xfs_bmap_add_extent_delay_real()
663 error = xfs_bmbt_update(bma->cur, LEFT.br_startoff, in xfs_bmap_add_extent_delay_real()
694 error = xfs_bmbt_lookup_eq(bma->cur, new->br_startoff, in xfs_bmap_add_extent_delay_real()
732 new->br_startoff, new->br_startblock, in xfs_bmap_add_extent_delay_real()
740 error = xfs_bmbt_lookup_eq(bma->cur, RIGHT.br_startoff, in xfs_bmap_add_extent_delay_real()
746 error = xfs_bmbt_update(bma->cur, new->br_startoff, in xfs_bmap_add_extent_delay_real()
778 error = xfs_bmbt_lookup_eq(bma->cur, new->br_startoff, in xfs_bmap_add_extent_delay_real()
830 temp = new->br_startoff - PREV.br_startoff; in xfs_bmap_add_extent_delay_real()
831 temp2 = PREV.br_startoff + PREV.br_blockcount - new_endoff; in xfs_bmap_add_extent_delay_real()
838 RIGHT.br_startoff = new_endoff; in xfs_bmap_add_extent_delay_real()
847 error = xfs_bmbt_lookup_eq(bma->cur, new->br_startoff, in xfs_bmap_add_extent_delay_real()
996 new_endoff = new->br_startoff + new->br_blockcount; in xfs_bmap_add_extent_unwritten_real()
997 ASSERT(PREV.br_startoff <= new->br_startoff); in xfs_bmap_add_extent_unwritten_real()
998 ASSERT(PREV.br_startoff + PREV.br_blockcount >= new_endoff); in xfs_bmap_add_extent_unwritten_real()
1004 if (PREV.br_startoff == new->br_startoff) in xfs_bmap_add_extent_unwritten_real()
1006 if (PREV.br_startoff + PREV.br_blockcount == new_endoff) in xfs_bmap_add_extent_unwritten_real()
1022 LEFT.br_startoff + LEFT.br_blockcount == new->br_startoff && in xfs_bmap_add_extent_unwritten_real()
1041 new_endoff == RIGHT.br_startoff && in xfs_bmap_add_extent_unwritten_real()
1078 if ((error = xfs_bmbt_lookup_eq(cur, RIGHT.br_startoff, in xfs_bmap_add_extent_unwritten_real()
1095 if ((error = xfs_bmbt_update(cur, LEFT.br_startoff, in xfs_bmap_add_extent_unwritten_real()
1121 if ((error = xfs_bmbt_lookup_eq(cur, PREV.br_startoff, in xfs_bmap_add_extent_unwritten_real()
1132 if ((error = xfs_bmbt_update(cur, LEFT.br_startoff, in xfs_bmap_add_extent_unwritten_real()
1156 if ((error = xfs_bmbt_lookup_eq(cur, RIGHT.br_startoff, in xfs_bmap_add_extent_unwritten_real()
1167 if ((error = xfs_bmbt_update(cur, new->br_startoff, in xfs_bmap_add_extent_unwritten_real()
1189 if ((error = xfs_bmbt_lookup_eq(cur, new->br_startoff, in xfs_bmap_add_extent_unwritten_real()
1194 if ((error = xfs_bmbt_update(cur, new->br_startoff, in xfs_bmap_add_extent_unwritten_real()
1210 PREV.br_startoff + new->br_blockcount); in xfs_bmap_add_extent_unwritten_real()
1226 if ((error = xfs_bmbt_lookup_eq(cur, PREV.br_startoff, in xfs_bmap_add_extent_unwritten_real()
1232 PREV.br_startoff + new->br_blockcount, in xfs_bmap_add_extent_unwritten_real()
1239 error = xfs_bmbt_update(cur, LEFT.br_startoff, in xfs_bmap_add_extent_unwritten_real()
1268 if ((error = xfs_bmbt_lookup_eq(cur, PREV.br_startoff, in xfs_bmap_add_extent_unwritten_real()
1274 PREV.br_startoff + new->br_blockcount, in xfs_bmap_add_extent_unwritten_real()
1300 new->br_startoff, new->br_startblock, in xfs_bmap_add_extent_unwritten_real()
1308 if ((error = xfs_bmbt_lookup_eq(cur, PREV.br_startoff, in xfs_bmap_add_extent_unwritten_real()
1313 if ((error = xfs_bmbt_update(cur, PREV.br_startoff, in xfs_bmap_add_extent_unwritten_real()
1320 if ((error = xfs_bmbt_update(cur, new->br_startoff, in xfs_bmap_add_extent_unwritten_real()
1346 if ((error = xfs_bmbt_lookup_eq(cur, PREV.br_startoff, in xfs_bmap_add_extent_unwritten_real()
1351 if ((error = xfs_bmbt_update(cur, PREV.br_startoff, in xfs_bmap_add_extent_unwritten_real()
1356 if ((error = xfs_bmbt_lookup_eq(cur, new->br_startoff, in xfs_bmap_add_extent_unwritten_real()
1376 new->br_startoff - PREV.br_startoff); in xfs_bmap_add_extent_unwritten_real()
1380 r[1].br_startoff = new_endoff; in xfs_bmap_add_extent_unwritten_real()
1382 PREV.br_startoff + PREV.br_blockcount - new_endoff; in xfs_bmap_add_extent_unwritten_real()
1394 if ((error = xfs_bmbt_lookup_eq(cur, PREV.br_startoff, in xfs_bmap_add_extent_unwritten_real()
1400 if ((error = xfs_bmbt_update(cur, r[1].br_startoff, in xfs_bmap_add_extent_unwritten_real()
1407 new->br_startoff - PREV.br_startoff; in xfs_bmap_add_extent_unwritten_real()
1416 if ((error = xfs_bmbt_lookup_eq(cur, new->br_startoff, in xfs_bmap_add_extent_unwritten_real()
1518 left.br_startoff + left.br_blockcount == new->br_startoff && in xfs_bmap_add_extent_hole_delay()
1523 new->br_startoff + new->br_blockcount == right.br_startoff && in xfs_bmap_add_extent_hole_delay()
1588 new->br_startoff, in xfs_bmap_add_extent_hole_delay()
1670 left.br_startoff + left.br_blockcount == new->br_startoff && in xfs_bmap_add_extent_hole_real()
1677 new->br_startoff + new->br_blockcount == right.br_startoff && in xfs_bmap_add_extent_hole_real()
1712 error = xfs_bmbt_lookup_eq(bma->cur, right.br_startoff, in xfs_bmap_add_extent_hole_real()
1726 error = xfs_bmbt_update(bma->cur, left.br_startoff, in xfs_bmap_add_extent_hole_real()
1753 error = xfs_bmbt_lookup_eq(bma->cur, left.br_startoff, in xfs_bmap_add_extent_hole_real()
1759 error = xfs_bmbt_update(bma->cur, left.br_startoff, in xfs_bmap_add_extent_hole_real()
1777 new->br_startoff, new->br_startblock, in xfs_bmap_add_extent_hole_real()
1787 right.br_startoff, in xfs_bmap_add_extent_hole_real()
1793 error = xfs_bmbt_update(bma->cur, new->br_startoff, in xfs_bmap_add_extent_hole_real()
1817 new->br_startoff, in xfs_bmap_add_extent_hole_real()
1892 (orig_off >= gotp->br_startoff) && in xfs_bmap_extsize_align()
1893 (orig_end <= gotp->br_startoff + gotp->br_blockcount)) { in xfs_bmap_extsize_align()
1919 if (prevp->br_startoff != NULLFILEOFF) { in xfs_bmap_extsize_align()
1921 prevo = prevp->br_startoff; in xfs_bmap_extsize_align()
1923 prevo = prevp->br_startoff + prevp->br_blockcount; in xfs_bmap_extsize_align()
1936 if (!eof && gotp->br_startoff != NULLFILEOFF) { in xfs_bmap_extsize_align()
1939 nexto = gotp->br_startoff + gotp->br_blockcount; in xfs_bmap_extsize_align()
1941 nexto = gotp->br_startoff; in xfs_bmap_extsize_align()
2007 if (!eof && gotp->br_startoff != NULLFILEOFF) in xfs_bmap_extsize_align()
2008 ASSERT(align_off + align_alen <= gotp->br_startoff); in xfs_bmap_extsize_align()
2009 if (prevp->br_startoff != NULLFILEOFF) in xfs_bmap_extsize_align()
2010 ASSERT(align_off >= prevp->br_startoff + prevp->br_blockcount); in xfs_bmap_extsize_align()
2045 if (ap->eof && ap->prev.br_startoff != NULLFILEOFF && in xfs_bmap_adjacent()
2054 (ap->prev.br_startoff + ap->prev.br_blockcount); in xfs_bmap_adjacent()
2074 if (ap->prev.br_startoff != NULLFILEOFF && in xfs_bmap_adjacent()
2083 (ap->prev.br_startoff + in xfs_bmap_adjacent()
2120 adjust = gotdiff = ap->got.br_startoff - ap->offset; in xfs_bmap_adjacent()
2734 ASSERT(got.br_startoff <= del->br_startoff); in xfs_bmap_del_extent()
2735 del_endoff = del->br_startoff + del->br_blockcount; in xfs_bmap_del_extent()
2736 got_endoff = got.br_startoff + got.br_blockcount; in xfs_bmap_del_extent()
2783 if ((error = xfs_bmbt_lookup_eq(cur, got.br_startoff, in xfs_bmap_del_extent()
2800 switch (((got.br_startoff == del->br_startoff) << 1) | in xfs_bmap_del_extent()
2872 if ((error = xfs_bmbt_update(cur, got.br_startoff, in xfs_bmap_del_extent()
2883 temp = del->br_startoff - got.br_startoff; in xfs_bmap_del_extent()
2886 new.br_startoff = del_endoff; in xfs_bmap_del_extent()
2895 got.br_startoff, in xfs_bmap_del_extent()
2917 got.br_startoff, in xfs_bmap_del_extent()
2927 got.br_startoff, in xfs_bmap_del_extent()
3148 kp->br_startoff = cpu_to_be64(xfs_bmbt_disk_get_startoff(arp)); in xfs_bmap_extents_to_btree()
3321 gotp->br_startoff = 0xffa5a5a5a5a5a5a5LL; in xfs_bmap_search_multi_extents()
3329 prevp->br_startoff = NULLFILEOFF; in xfs_bmap_search_multi_extents()
3382 (unsigned long long)gotp->br_startoff, in xfs_bmap_search_extents()
3854 if (prev.br_startoff == NULLFILEOFF) in xfs_bmap_last_before()
3857 *last_block = prev.br_startoff + prev.br_blockcount; in xfs_bmap_last_before()
3922 bma->aeof = bma->offset >= rec.br_startoff + rec.br_blockcount || in xfs_bmap_isaeof()
3923 (bma->offset >= rec.br_startoff && in xfs_bmap_isaeof()
3947 *eof = endoff >= rec.br_startoff + rec.br_blockcount; in xfs_bmap_eof()
3980 *last_block = rec.br_startoff + rec.br_blockcount; in xfs_bmap_last_offset()
4011 rval = s.br_startoff == 0 && s.br_blockcount == 1; in xfs_bmap_one_block()
4217 ASSERT(mval[i].br_startoff >= bno); in xfs_bmap_validate_ret()
4219 ASSERT(mval[i].br_startoff + mval[i].br_blockcount <= in xfs_bmap_validate_ret()
4222 ASSERT(mval[i].br_startoff < bno + len); in xfs_bmap_validate_ret()
4223 ASSERT(mval[i].br_startoff + mval[i].br_blockcount > in xfs_bmap_validate_ret()
4227 mval[i - 1].br_startoff + mval[i - 1].br_blockcount == in xfs_bmap_validate_ret()
4228 mval[i].br_startoff); in xfs_bmap_validate_ret()
4253 got->br_startoff + got->br_blockcount <= obno) { in xfs_bmapi_trim_map()
4264 mval->br_startoff = *bno; in xfs_bmapi_trim_map()
4269 (*bno - got->br_startoff); in xfs_bmapi_trim_map()
4278 got->br_blockcount - (*bno - got->br_startoff)); in xfs_bmapi_trim_map()
4300 ((mval->br_startoff + mval->br_blockcount) <= end)); in xfs_bmapi_update_map()
4302 (mval->br_startoff < obno)); in xfs_bmapi_update_map()
4304 *bno = mval->br_startoff + mval->br_blockcount; in xfs_bmapi_update_map()
4306 if (*n > 0 && mval->br_startoff == mval[-1].br_startoff) { in xfs_bmapi_update_map()
4320 ASSERT(mval->br_startoff == in xfs_bmapi_update_map()
4321 mval[-1].br_startoff + mval[-1].br_blockcount); in xfs_bmapi_update_map()
4326 mval->br_startoff == in xfs_bmapi_update_map()
4327 mval[-1].br_startoff + mval[-1].br_blockcount) { in xfs_bmapi_update_map()
4331 ((mval->br_startoff + mval->br_blockcount) <= in xfs_bmapi_update_map()
4396 got.br_startoff = end; in xfs_bmapi_read()
4397 if (got.br_startoff > bno) { in xfs_bmapi_read()
4399 mval->br_startoff = bno; in xfs_bmapi_read()
4402 XFS_FILBLKS_MIN(len, got.br_startoff - bno); in xfs_bmapi_read()
4449 alen = XFS_FILBLKS_MIN(alen, got->br_startoff - aoff); in xfs_bmapi_reserve_delalloc()
4505 got->br_startoff = aoff; in xfs_bmapi_reserve_delalloc()
4517 ASSERT(got->br_startoff <= aoff); in xfs_bmapi_reserve_delalloc()
4518 ASSERT(got->br_startoff + got->br_blockcount >= aoff + alen); in xfs_bmapi_reserve_delalloc()
4586 if (eof || got.br_startoff > bno) { in xfs_bmapi_delay()
4642 bma->offset = bma->got.br_startoff; in xfs_bmapi_allocate()
4651 bma->got.br_startoff - bma->offset); in xfs_bmapi_allocate()
4701 bma->got.br_startoff = bma->offset; in xfs_bmapi_allocate()
4730 ASSERT(bma->got.br_startoff <= bma->offset); in xfs_bmapi_allocate()
4731 ASSERT(bma->got.br_startoff + bma->got.br_blockcount >= in xfs_bmapi_allocate()
4911 inhole = eof || bma.got.br_startoff > bno; in xfs_bmapi_write()
5116 bno = got.br_startoff + got.br_blockcount - 1; in xfs_bunmapi()
5143 if (got.br_startoff > bno) { in xfs_bunmapi()
5154 got.br_startoff + got.br_blockcount - 1); in xfs_bunmapi()
5164 if (got.br_startoff < start) { in xfs_bunmapi()
5165 del.br_startoff = start; in xfs_bunmapi()
5166 del.br_blockcount -= start - got.br_startoff; in xfs_bunmapi()
5168 del.br_startblock += start - got.br_startoff; in xfs_bunmapi()
5170 if (del.br_startoff + del.br_blockcount > bno + 1) in xfs_bunmapi()
5171 del.br_blockcount = bno + 1 - del.br_startoff; in xfs_bunmapi()
5191 if (bno < got.br_startoff) { in xfs_bunmapi()
5209 del.br_startoff += del.br_blockcount - mod; in xfs_bunmapi()
5230 del.br_startoff += mod; in xfs_bunmapi()
5232 } else if ((del.br_startoff == start && in xfs_bunmapi()
5242 if (got.br_startoff > bno) { in xfs_bunmapi()
5264 if (prev.br_startoff < start) { in xfs_bunmapi()
5265 mod = start - prev.br_startoff; in xfs_bunmapi()
5268 prev.br_startoff = start; in xfs_bunmapi()
5330 del.br_startoff > got.br_startoff && in xfs_bunmapi()
5331 del.br_startoff + del.br_blockcount < in xfs_bunmapi()
5332 got.br_startoff + got.br_blockcount) { in xfs_bunmapi()
5341 bno = del.br_startoff - 1; in xfs_bunmapi()
5619 XFS_FSB_TO_BB(mp, map[i].br_startoff); in xfs_getbmap()
5734 ASSERT(be64_to_cpu(prevp->br_startoff) < in xfs_check_block()
5735 be64_to_cpu(keyp->br_startoff)); in xfs_check_block()