Lines Matching refs:rc_blockcount

53 	cur->bc_rec.rc.rc_blockcount = 0;  in xfs_refcount_lookup_le()
70 cur->bc_rec.rc.rc_blockcount = 0; in xfs_refcount_lookup_ge()
87 cur->bc_rec.rc.rc_blockcount = 0; in xfs_refcount_lookup_eq()
98 irec->rc_blockcount = be32_to_cpu(rec->refc.rc_blockcount); in xfs_refcount_btrec_to_irec()
124 if (irec->rc_blockcount == 0 || irec->rc_blockcount > MAXREFCEXTLEN) in xfs_refcount_get_rec()
140 if (realstart > realstart + irec->rc_blockcount) in xfs_refcount_get_rec()
142 if (!xfs_verify_agbno(mp, agno, realstart + irec->rc_blockcount - 1)) in xfs_refcount_get_rec()
156 irec->rc_startblock, irec->rc_blockcount, irec->rc_refcount); in xfs_refcount_get_rec()
175 rec.refc.rc_blockcount = cpu_to_be32(irec->rc_blockcount); in xfs_refcount_update()
199 cur->bc_rec.rc.rc_blockcount = irec->rc_blockcount; in xfs_refcount_insert()
336 return rc->rc_startblock + rc->rc_blockcount; in xfs_refc_next()
376 tmp.rc_blockcount -= (agbno - rcext.rc_startblock); in xfs_refcount_split_extent()
383 tmp.rc_blockcount = agbno - rcext.rc_startblock; in xfs_refcount_split_extent()
462 left->rc_blockcount = extlen; in xfs_refcount_merge_center_extents()
523 left->rc_blockcount += cleft->rc_blockcount; in xfs_refcount_merge_left_extent()
528 *agbno += cleft->rc_blockcount; in xfs_refcount_merge_left_extent()
529 *aglen -= cleft->rc_blockcount; in xfs_refcount_merge_left_extent()
587 right->rc_startblock -= cright->rc_blockcount; in xfs_refcount_merge_right_extent()
588 right->rc_blockcount += cright->rc_blockcount; in xfs_refcount_merge_right_extent()
593 *aglen -= cright->rc_blockcount; in xfs_refcount_merge_right_extent()
670 cleft->rc_blockcount = min(aglen, in xfs_refcount_find_left_extents()
680 cleft->rc_blockcount = aglen; in xfs_refcount_find_left_extents()
759 cright->rc_blockcount = right->rc_startblock - in xfs_refcount_find_right_extents()
769 cright->rc_blockcount = aglen; in xfs_refcount_find_right_extents()
828 (cleft.rc_blockcount == cright.rc_blockcount); in xfs_refcount_merge_extents()
831 ulen = (unsigned long long)left.rc_blockcount + cleft.rc_blockcount + in xfs_refcount_merge_extents()
832 right.rc_blockcount; in xfs_refcount_merge_extents()
844 ulen = (unsigned long long)left.rc_blockcount + cleft.rc_blockcount; in xfs_refcount_merge_extents()
863 ulen = (unsigned long long)right.rc_blockcount + cright.rc_blockcount; in xfs_refcount_merge_extents()
941 ext.rc_blockcount = 0; in xfs_refcount_adjust_extents()
952 tmp.rc_blockcount = min(*aglen, in xfs_refcount_adjust_extents()
978 tmp.rc_blockcount, oinfo); in xfs_refcount_adjust_extents()
981 (*agbno) += tmp.rc_blockcount; in xfs_refcount_adjust_extents()
982 (*aglen) -= tmp.rc_blockcount; in xfs_refcount_adjust_extents()
1022 xfs_bmap_add_free(cur->bc_tp, fsbno, ext.rc_blockcount, in xfs_refcount_adjust_extents()
1032 (*agbno) += ext.rc_blockcount; in xfs_refcount_adjust_extents()
1033 (*aglen) -= ext.rc_blockcount; in xfs_refcount_adjust_extents()
1328 if (tmp.rc_startblock + tmp.rc_blockcount <= agbno) { in xfs_refcount_find_shared()
1349 tmp.rc_blockcount -= (agbno - tmp.rc_startblock); in xfs_refcount_find_shared()
1354 *flen = min(tmp.rc_blockcount, agbno + aglen - *fbno); in xfs_refcount_find_shared()
1375 *flen = min(*flen + tmp.rc_blockcount, agbno + aglen - *fbno); in xfs_refcount_find_shared()
1465 ext.rc_blockcount = 0; in xfs_refcount_adjust_cow_extents()
1479 tmp.rc_blockcount = aglen; in xfs_refcount_adjust_cow_extents()
1499 if (XFS_IS_CORRUPT(cur->bc_mp, ext.rc_blockcount != aglen)) { in xfs_refcount_adjust_cow_extents()
1742 rr->rr_rrec.rc_blockcount); in xfs_refcount_recover_cow_leftovers()
1745 xfs_bmap_add_free(tp, fsb, rr->rr_rrec.rc_blockcount, NULL); in xfs_refcount_recover_cow_leftovers()