Lines Matching refs:br_blockcount
114 cur->bc_rec.b.br_blockcount = 0; in xfs_bmbt_lookup_first()
495 ASSERT(mval[i].br_blockcount > 0); in xfs_bmap_validate_ret()
498 ASSERT(mval[i].br_blockcount <= len); in xfs_bmap_validate_ret()
499 ASSERT(mval[i].br_startoff + mval[i].br_blockcount <= in xfs_bmap_validate_ret()
503 ASSERT(mval[i].br_startoff + mval[i].br_blockcount > in xfs_bmap_validate_ret()
507 mval[i - 1].br_startoff + mval[i - 1].br_blockcount == in xfs_bmap_validate_ret()
905 rec.br_blockcount = 1; in xfs_bmap_local_to_extents()
1304 lastaddr = got.br_startoff + got.br_blockcount; in xfs_bmap_first_unused()
1412 bma->aeof = bma->offset >= rec.br_startoff + rec.br_blockcount || in xfs_bmap_isaeof()
1446 *last_block = rec.br_startoff + rec.br_blockcount; in xfs_bmap_last_offset()
1476 rval = s.br_startoff == 0 && s.br_blockcount == 1; in xfs_bmap_one_block()
1525 new_endoff = new->br_startoff + new->br_blockcount; in xfs_bmap_add_extent_delay_real()
1528 ASSERT(PREV.br_startoff + PREV.br_blockcount >= new_endoff); in xfs_bmap_add_extent_delay_real()
1539 if (PREV.br_startoff + PREV.br_blockcount == new_endoff) in xfs_bmap_add_extent_delay_real()
1553 LEFT.br_startoff + LEFT.br_blockcount == new->br_startoff && in xfs_bmap_add_extent_delay_real()
1554 LEFT.br_startblock + LEFT.br_blockcount == new->br_startblock && in xfs_bmap_add_extent_delay_real()
1556 LEFT.br_blockcount + new->br_blockcount <= MAXEXTLEN) in xfs_bmap_add_extent_delay_real()
1572 new->br_startblock + new->br_blockcount == RIGHT.br_startblock && in xfs_bmap_add_extent_delay_real()
1574 new->br_blockcount + RIGHT.br_blockcount <= MAXEXTLEN && in xfs_bmap_add_extent_delay_real()
1579 LEFT.br_blockcount + new->br_blockcount + RIGHT.br_blockcount in xfs_bmap_add_extent_delay_real()
1595 LEFT.br_blockcount += PREV.br_blockcount + RIGHT.br_blockcount; in xfs_bmap_add_extent_delay_real()
1640 LEFT.br_blockcount += PREV.br_blockcount; in xfs_bmap_add_extent_delay_real()
1671 PREV.br_blockcount += RIGHT.br_blockcount; in xfs_bmap_add_extent_delay_real()
1734 temp = PREV.br_blockcount - new->br_blockcount; in xfs_bmap_add_extent_delay_real()
1738 LEFT.br_blockcount += new->br_blockcount; in xfs_bmap_add_extent_delay_real()
1740 PREV.br_blockcount = temp; in xfs_bmap_add_extent_delay_real()
1741 PREV.br_startoff += new->br_blockcount; in xfs_bmap_add_extent_delay_real()
1801 temp = PREV.br_blockcount - new->br_blockcount; in xfs_bmap_add_extent_delay_real()
1807 PREV.br_blockcount = temp; in xfs_bmap_add_extent_delay_real()
1822 RIGHT.br_blockcount += new->br_blockcount; in xfs_bmap_add_extent_delay_real()
1840 temp = PREV.br_blockcount - new->br_blockcount; in xfs_bmap_add_extent_delay_real()
1844 PREV.br_blockcount = temp; in xfs_bmap_add_extent_delay_real()
1888 temp = PREV.br_blockcount - new->br_blockcount; in xfs_bmap_add_extent_delay_real()
1894 PREV.br_blockcount = temp; in xfs_bmap_add_extent_delay_real()
1928 RIGHT.br_blockcount = in xfs_bmap_add_extent_delay_real()
1929 PREV.br_startoff + PREV.br_blockcount - new_endoff; in xfs_bmap_add_extent_delay_real()
1932 RIGHT.br_blockcount)); in xfs_bmap_add_extent_delay_real()
1935 PREV.br_blockcount = new->br_startoff - PREV.br_startoff; in xfs_bmap_add_extent_delay_real()
1938 PREV.br_blockcount)); in xfs_bmap_add_extent_delay_real()
2077 new_endoff = new->br_startoff + new->br_blockcount; in xfs_bmap_add_extent_unwritten_real()
2079 ASSERT(PREV.br_startoff + PREV.br_blockcount >= new_endoff); in xfs_bmap_add_extent_unwritten_real()
2087 if (PREV.br_startoff + PREV.br_blockcount == new_endoff) in xfs_bmap_add_extent_unwritten_real()
2101 LEFT.br_startoff + LEFT.br_blockcount == new->br_startoff && in xfs_bmap_add_extent_unwritten_real()
2102 LEFT.br_startblock + LEFT.br_blockcount == new->br_startblock && in xfs_bmap_add_extent_unwritten_real()
2104 LEFT.br_blockcount + new->br_blockcount <= MAXEXTLEN) in xfs_bmap_add_extent_unwritten_real()
2120 new->br_startblock + new->br_blockcount == RIGHT.br_startblock && in xfs_bmap_add_extent_unwritten_real()
2122 new->br_blockcount + RIGHT.br_blockcount <= MAXEXTLEN && in xfs_bmap_add_extent_unwritten_real()
2127 LEFT.br_blockcount + new->br_blockcount + RIGHT.br_blockcount in xfs_bmap_add_extent_unwritten_real()
2142 LEFT.br_blockcount += PREV.br_blockcount + RIGHT.br_blockcount; in xfs_bmap_add_extent_unwritten_real()
2195 LEFT.br_blockcount += PREV.br_blockcount; in xfs_bmap_add_extent_unwritten_real()
2235 PREV.br_blockcount += RIGHT.br_blockcount; in xfs_bmap_add_extent_unwritten_real()
2304 LEFT.br_blockcount += new->br_blockcount; in xfs_bmap_add_extent_unwritten_real()
2307 PREV.br_startoff += new->br_blockcount; in xfs_bmap_add_extent_unwritten_real()
2308 PREV.br_startblock += new->br_blockcount; in xfs_bmap_add_extent_unwritten_real()
2309 PREV.br_blockcount -= new->br_blockcount; in xfs_bmap_add_extent_unwritten_real()
2344 PREV.br_startoff += new->br_blockcount; in xfs_bmap_add_extent_unwritten_real()
2345 PREV.br_startblock += new->br_blockcount; in xfs_bmap_add_extent_unwritten_real()
2346 PREV.br_blockcount -= new->br_blockcount; in xfs_bmap_add_extent_unwritten_real()
2382 PREV.br_blockcount -= new->br_blockcount; in xfs_bmap_add_extent_unwritten_real()
2386 RIGHT.br_blockcount += new->br_blockcount; in xfs_bmap_add_extent_unwritten_real()
2421 PREV.br_blockcount -= new->br_blockcount; in xfs_bmap_add_extent_unwritten_real()
2465 PREV.br_blockcount = new->br_startoff - PREV.br_startoff; in xfs_bmap_add_extent_unwritten_real()
2469 r[1].br_blockcount = in xfs_bmap_add_extent_unwritten_real()
2470 old.br_startoff + old.br_blockcount - new_endoff; in xfs_bmap_add_extent_unwritten_real()
2471 r[1].br_startblock = new->br_startblock + new->br_blockcount; in xfs_bmap_add_extent_unwritten_real()
2613 left.br_startoff + left.br_blockcount == new->br_startoff && in xfs_bmap_add_extent_hole_delay()
2614 left.br_blockcount + new->br_blockcount <= MAXEXTLEN) in xfs_bmap_add_extent_hole_delay()
2618 new->br_startoff + new->br_blockcount == right.br_startoff && in xfs_bmap_add_extent_hole_delay()
2619 new->br_blockcount + right.br_blockcount <= MAXEXTLEN && in xfs_bmap_add_extent_hole_delay()
2621 (left.br_blockcount + new->br_blockcount + in xfs_bmap_add_extent_hole_delay()
2622 right.br_blockcount <= MAXEXTLEN))) in xfs_bmap_add_extent_hole_delay()
2635 temp = left.br_blockcount + new->br_blockcount + in xfs_bmap_add_extent_hole_delay()
2636 right.br_blockcount; in xfs_bmap_add_extent_hole_delay()
2644 left.br_blockcount = temp; in xfs_bmap_add_extent_hole_delay()
2657 temp = left.br_blockcount + new->br_blockcount; in xfs_bmap_add_extent_hole_delay()
2663 left.br_blockcount = temp; in xfs_bmap_add_extent_hole_delay()
2676 temp = new->br_blockcount + right.br_blockcount; in xfs_bmap_add_extent_hole_delay()
2683 right.br_blockcount = temp; in xfs_bmap_add_extent_hole_delay()
2762 left.br_startoff + left.br_blockcount == new->br_startoff && in xfs_bmap_add_extent_hole_real()
2763 left.br_startblock + left.br_blockcount == new->br_startblock && in xfs_bmap_add_extent_hole_real()
2765 left.br_blockcount + new->br_blockcount <= MAXEXTLEN) in xfs_bmap_add_extent_hole_real()
2769 new->br_startoff + new->br_blockcount == right.br_startoff && in xfs_bmap_add_extent_hole_real()
2770 new->br_startblock + new->br_blockcount == right.br_startblock && in xfs_bmap_add_extent_hole_real()
2772 new->br_blockcount + right.br_blockcount <= MAXEXTLEN && in xfs_bmap_add_extent_hole_real()
2774 left.br_blockcount + new->br_blockcount + in xfs_bmap_add_extent_hole_real()
2775 right.br_blockcount <= MAXEXTLEN)) in xfs_bmap_add_extent_hole_real()
2789 left.br_blockcount += new->br_blockcount + right.br_blockcount; in xfs_bmap_add_extent_hole_real()
2834 left.br_blockcount += new->br_blockcount; in xfs_bmap_add_extent_hole_real()
2866 right.br_blockcount += new->br_blockcount; in xfs_bmap_add_extent_hole_real()
2986 (orig_end <= gotp->br_startoff + gotp->br_blockcount)) { in xfs_bmap_extsize_align()
3028 prevo = prevp->br_startoff + prevp->br_blockcount; in xfs_bmap_extsize_align()
3044 nexto = gotp->br_startoff + gotp->br_blockcount; in xfs_bmap_extsize_align()
3117 ASSERT(align_off >= prevp->br_startoff + prevp->br_blockcount); in xfs_bmap_extsize_align()
3156 ISVALID(ap->prev.br_startblock + ap->prev.br_blockcount, in xfs_bmap_adjacent()
3158 ap->blkno = ap->prev.br_startblock + ap->prev.br_blockcount; in xfs_bmap_adjacent()
3163 (ap->prev.br_startoff + ap->prev.br_blockcount); in xfs_bmap_adjacent()
3186 ap->prev.br_blockcount) && in xfs_bmap_adjacent()
3193 ap->prev.br_blockcount); in xfs_bmap_adjacent()
3738 if (irec->br_startoff + irec->br_blockcount <= bno || in xfs_trim_extent()
3740 irec->br_blockcount = 0; in xfs_trim_extent()
3752 irec->br_blockcount -= 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()
3757 irec->br_blockcount -= distance; in xfs_trim_extent()
3776 got->br_startoff + got->br_blockcount <= obno) { in xfs_bmapi_trim_map()
3800 mval->br_blockcount = XFS_FILBLKS_MIN(end - *bno, in xfs_bmapi_trim_map()
3801 got->br_blockcount - (*bno - got->br_startoff)); in xfs_bmapi_trim_map()
3803 ASSERT(mval->br_blockcount <= len); in xfs_bmapi_trim_map()
3823 ((mval->br_startoff + mval->br_blockcount) <= end)); in xfs_bmapi_update_map()
3824 ASSERT((flags & XFS_BMAPI_ENTIRE) || (mval->br_blockcount <= *len) || in xfs_bmapi_update_map()
3827 *bno = mval->br_startoff + mval->br_blockcount; in xfs_bmapi_update_map()
3832 ASSERT(mval->br_blockcount > mval[-1].br_blockcount); in xfs_bmapi_update_map()
3834 mval[-1].br_blockcount = mval->br_blockcount; in xfs_bmapi_update_map()
3840 mval[-1].br_blockcount && in xfs_bmapi_update_map()
3843 mval[-1].br_startoff + mval[-1].br_blockcount); in xfs_bmapi_update_map()
3844 mval[-1].br_blockcount += mval->br_blockcount; in xfs_bmapi_update_map()
3849 mval[-1].br_startoff + mval[-1].br_blockcount) { in xfs_bmapi_update_map()
3850 mval[-1].br_blockcount += mval->br_blockcount; in xfs_bmapi_update_map()
3853 ((mval->br_startoff + mval->br_blockcount) <= in xfs_bmapi_update_map()
3919 mval->br_blockcount = in xfs_bmapi_read()
3922 bno += mval->br_blockcount; in xfs_bmapi_read()
3923 len -= mval->br_blockcount; in xfs_bmapi_read()
4030 got->br_blockcount = alen; in xfs_bmapi_reserve_delalloc()
4106 bma->length = (xfs_extlen_t)bma->got.br_blockcount; in xfs_bmapi_allocate()
4149 bma->got.br_blockcount = bma->length; in xfs_bmapi_allocate()
4174 ASSERT(bma->got.br_startoff + bma->got.br_blockcount >= in xfs_bmapi_allocate()
4207 ASSERT(mval->br_blockcount <= len); in xfs_bmapi_convert_unwritten()
4221 mval->br_blockcount); in xfs_bmapi_convert_unwritten()
4255 if (mval->br_blockcount < len) in xfs_bmapi_convert_unwritten()
4558 bma.length = max_t(xfs_filblks_t, bma.got.br_blockcount, MAXEXTLEN); in xfs_bmapi_convert_delalloc()
4676 got.br_blockcount = len; in xfs_bmapi_remap()
4808 del_endoff = del->br_startoff + del->br_blockcount; in xfs_bmap_del_extent_delay()
4809 got_endoff = got->br_startoff + got->br_blockcount; in xfs_bmap_del_extent_delay()
4813 ASSERT(del->br_blockcount > 0); in xfs_bmap_del_extent_delay()
4818 uint64_t rtexts = XFS_FSB_TO_B(mp, del->br_blockcount); in xfs_bmap_del_extent_delay()
4830 -((long)del->br_blockcount), 0, in xfs_bmap_del_extent_delay()
4834 ip->i_delayed_blks -= del->br_blockcount; in xfs_bmap_del_extent_delay()
4854 got->br_blockcount -= del->br_blockcount; in xfs_bmap_del_extent_delay()
4856 got->br_blockcount), da_old); in xfs_bmap_del_extent_delay()
4864 got->br_blockcount = got->br_blockcount - del->br_blockcount; in xfs_bmap_del_extent_delay()
4866 got->br_blockcount), da_old); in xfs_bmap_del_extent_delay()
4880 got->br_blockcount = del->br_startoff - got->br_startoff; in xfs_bmap_del_extent_delay()
4881 got_indlen = xfs_bmap_worst_indlen(ip, got->br_blockcount); in xfs_bmap_del_extent_delay()
4883 new.br_blockcount = got_endoff - del_endoff; in xfs_bmap_del_extent_delay()
4884 new_indlen = xfs_bmap_worst_indlen(ip, new.br_blockcount); in xfs_bmap_del_extent_delay()
4888 del->br_blockcount); in xfs_bmap_del_extent_delay()
4901 del->br_blockcount -= stolen; in xfs_bmap_del_extent_delay()
4908 da_diff += del->br_blockcount; in xfs_bmap_del_extent_delay()
4931 del_endoff = del->br_startoff + del->br_blockcount; in xfs_bmap_del_extent_cow()
4932 got_endoff = got->br_startoff + got->br_blockcount; in xfs_bmap_del_extent_cow()
4934 ASSERT(del->br_blockcount > 0); in xfs_bmap_del_extent_cow()
4957 got->br_blockcount -= del->br_blockcount; in xfs_bmap_del_extent_cow()
4958 got->br_startblock = del->br_startblock + del->br_blockcount; in xfs_bmap_del_extent_cow()
4965 got->br_blockcount -= del->br_blockcount; in xfs_bmap_del_extent_cow()
4972 got->br_blockcount = del->br_startoff - got->br_startoff; in xfs_bmap_del_extent_cow()
4975 new.br_blockcount = got_endoff - del_endoff; in xfs_bmap_del_extent_cow()
4977 new.br_startblock = del->br_startblock + del->br_blockcount; in xfs_bmap_del_extent_cow()
4984 ip->i_delayed_blks -= del->br_blockcount; in xfs_bmap_del_extent_cow()
5023 ASSERT(del->br_blockcount > 0); in xfs_bmap_del_extent_real()
5026 del_endoff = del->br_startoff + del->br_blockcount; in xfs_bmap_del_extent_real()
5027 got_endoff = got.br_startoff + got.br_blockcount; in xfs_bmap_del_extent_real()
5052 len = div_u64_rem(del->br_blockcount, mp->m_sb.sb_rextsize, in xfs_bmap_del_extent_real()
5073 nblks = del->br_blockcount; in xfs_bmap_del_extent_real()
5077 del_endblock = del->br_startblock + del->br_blockcount; in xfs_bmap_del_extent_real()
5120 got.br_blockcount -= del->br_blockcount; in xfs_bmap_del_extent_real()
5134 got.br_blockcount -= del->br_blockcount; in xfs_bmap_del_extent_real()
5150 got.br_blockcount = del->br_startoff - got.br_startoff; in xfs_bmap_del_extent_real()
5154 new.br_blockcount = got_endoff - del_endoff; in xfs_bmap_del_extent_real()
5227 del->br_blockcount, NULL, in xfs_bmap_del_extent_real()
5361 got.br_startoff + got.br_blockcount - 1); in __xfs_bunmapi()
5383 del.br_blockcount -= start - got.br_startoff; in __xfs_bunmapi()
5387 if (del.br_startoff + del.br_blockcount > end + 1) in __xfs_bunmapi()
5388 del.br_blockcount = end + 1 - del.br_startoff; in __xfs_bunmapi()
5391 if (max_len < del.br_blockcount) { in __xfs_bunmapi()
5392 del.br_startoff += del.br_blockcount - max_len; in __xfs_bunmapi()
5394 del.br_startblock += del.br_blockcount - max_len; in __xfs_bunmapi()
5395 del.br_blockcount = max_len; in __xfs_bunmapi()
5401 sum = del.br_startblock + del.br_blockcount; in __xfs_bunmapi()
5417 end -= mod > del.br_blockcount ? in __xfs_bunmapi()
5418 del.br_blockcount : mod; in __xfs_bunmapi()
5436 if (del.br_blockcount > mod) { in __xfs_bunmapi()
5437 del.br_startoff += del.br_blockcount - mod; in __xfs_bunmapi()
5438 del.br_startblock += del.br_blockcount - mod; in __xfs_bunmapi()
5439 del.br_blockcount = mod; in __xfs_bunmapi()
5458 if (del.br_blockcount > off) { in __xfs_bunmapi()
5459 del.br_blockcount -= off; in __xfs_bunmapi()
5469 ASSERT(end >= del.br_blockcount); in __xfs_bunmapi()
5470 end -= del.br_blockcount; in __xfs_bunmapi()
5492 prev.br_startblock + prev.br_blockcount); in __xfs_bunmapi()
5499 prev.br_blockcount -= mod; in __xfs_bunmapi()
5533 max_len -= del.br_blockcount; in __xfs_bunmapi()
5628 if ((left->br_startoff + left->br_blockcount != startoff) || in xfs_bmse_can_merge()
5629 (left->br_startblock + left->br_blockcount != got->br_startblock) || in xfs_bmse_can_merge()
5631 (left->br_blockcount + got->br_blockcount > MAXEXTLEN)) in xfs_bmse_can_merge()
5664 blockcount = left->br_blockcount + got->br_blockcount; in xfs_bmse_merge()
5671 new.br_blockcount = blockcount; in xfs_bmse_merge()
5722 new.br_startoff = left->br_startoff + left->br_blockcount; in xfs_bmse_merge()
5819 if (new_startoff < prev.br_startoff + prev.br_blockcount) { in xfs_bmap_collapse_extents()
5950 if (new_startoff + got.br_blockcount > next.br_startoff) { in xfs_bmap_insert_extents()
5971 stop_fsb >= got.br_startoff + got.br_blockcount) { in xfs_bmap_insert_extents()
6034 new.br_blockcount = got.br_blockcount - gotblkcnt; in xfs_bmap_split_extent()
6049 got.br_blockcount = gotblkcnt; in xfs_bmap_split_extent()
6132 bmap->br_blockcount, in __xfs_bmap_add()
6232 if (irec->br_startblock + irec->br_blockcount <= irec->br_startblock) in xfs_bmap_validate_extent()
6234 if (irec->br_startoff + irec->br_blockcount <= irec->br_startoff) in xfs_bmap_validate_extent()
6238 endfsb = irec->br_startblock + irec->br_blockcount - 1; in xfs_bmap_validate_extent()