Lines Matching refs:rc_blockcount

54 	cur->bc_rec.rc.rc_blockcount = 0;  in xfs_refcount_lookup_le()
71 cur->bc_rec.rc.rc_blockcount = 0; in xfs_refcount_lookup_ge()
88 cur->bc_rec.rc.rc_blockcount = 0; in xfs_refcount_lookup_eq()
99 irec->rc_blockcount = be32_to_cpu(rec->refc.rc_blockcount); in xfs_refcount_btrec_to_irec()
125 if (irec->rc_blockcount == 0 || irec->rc_blockcount > MAXREFCEXTLEN) in xfs_refcount_get_rec()
141 if (realstart > realstart + irec->rc_blockcount) in xfs_refcount_get_rec()
143 if (!xfs_verify_agbno(mp, agno, realstart + irec->rc_blockcount - 1)) in xfs_refcount_get_rec()
157 irec->rc_startblock, irec->rc_blockcount, irec->rc_refcount); in xfs_refcount_get_rec()
176 rec.refc.rc_blockcount = cpu_to_be32(irec->rc_blockcount); in xfs_refcount_update()
200 cur->bc_rec.rc.rc_blockcount = irec->rc_blockcount; in xfs_refcount_insert()
328 return rc->rc_startblock + rc->rc_blockcount; in xfs_refc_next()
365 tmp.rc_blockcount -= (agbno - rcext.rc_startblock); in xfs_refcount_split_extent()
372 tmp.rc_blockcount = agbno - rcext.rc_startblock; in xfs_refcount_split_extent()
437 left->rc_blockcount = extlen; in xfs_refcount_merge_center_extents()
491 left->rc_blockcount += cleft->rc_blockcount; in xfs_refcount_merge_left_extent()
496 *agbno += cleft->rc_blockcount; in xfs_refcount_merge_left_extent()
497 *aglen -= cleft->rc_blockcount; in xfs_refcount_merge_left_extent()
548 right->rc_startblock -= cright->rc_blockcount; in xfs_refcount_merge_right_extent()
549 right->rc_blockcount += cright->rc_blockcount; in xfs_refcount_merge_right_extent()
554 *aglen -= cright->rc_blockcount; in xfs_refcount_merge_right_extent()
626 cleft->rc_blockcount = min(aglen, in xfs_refcount_find_left_extents()
636 cleft->rc_blockcount = aglen; in xfs_refcount_find_left_extents()
710 cright->rc_blockcount = right->rc_startblock - in xfs_refcount_find_right_extents()
720 cright->rc_blockcount = aglen; in xfs_refcount_find_right_extents()
779 (cleft.rc_blockcount == cright.rc_blockcount); in xfs_refcount_merge_extents()
782 ulen = (unsigned long long)left.rc_blockcount + cleft.rc_blockcount + in xfs_refcount_merge_extents()
783 right.rc_blockcount; in xfs_refcount_merge_extents()
795 ulen = (unsigned long long)left.rc_blockcount + cleft.rc_blockcount; in xfs_refcount_merge_extents()
814 ulen = (unsigned long long)right.rc_blockcount + cright.rc_blockcount; in xfs_refcount_merge_extents()
892 ext.rc_blockcount = 0; in xfs_refcount_adjust_extents()
903 tmp.rc_blockcount = min(*aglen, in xfs_refcount_adjust_extents()
926 tmp.rc_blockcount, oinfo); in xfs_refcount_adjust_extents()
929 (*agbno) += tmp.rc_blockcount; in xfs_refcount_adjust_extents()
930 (*aglen) -= tmp.rc_blockcount; in xfs_refcount_adjust_extents()
968 xfs_bmap_add_free(cur->bc_tp, fsbno, ext.rc_blockcount, in xfs_refcount_adjust_extents()
978 (*agbno) += ext.rc_blockcount; in xfs_refcount_adjust_extents()
979 (*aglen) -= ext.rc_blockcount; in xfs_refcount_adjust_extents()
1281 if (tmp.rc_startblock + tmp.rc_blockcount <= agbno) { in xfs_refcount_find_shared()
1299 tmp.rc_blockcount -= (agbno - tmp.rc_startblock); in xfs_refcount_find_shared()
1304 *flen = min(tmp.rc_blockcount, agbno + aglen - *fbno); in xfs_refcount_find_shared()
1322 *flen = min(*flen + tmp.rc_blockcount, agbno + aglen - *fbno); in xfs_refcount_find_shared()
1412 ext.rc_blockcount = 0; in xfs_refcount_adjust_cow_extents()
1423 tmp.rc_blockcount = aglen; in xfs_refcount_adjust_cow_extents()
1440 ext.rc_blockcount == aglen, out_error); in xfs_refcount_adjust_cow_extents()
1685 rr->rr_rrec.rc_blockcount); in xfs_refcount_recover_cow_leftovers()
1690 xfs_bmap_add_free(tp, fsb, rr->rr_rrec.rc_blockcount, NULL); in xfs_refcount_recover_cow_leftovers()