Lines Matching refs:rc_blockcount

62 	cur->bc_rec.rc.rc_blockcount = 0;  in xfs_refcount_lookup_le()
82 cur->bc_rec.rc.rc_blockcount = 0; in xfs_refcount_lookup_ge()
102 cur->bc_rec.rc.rc_blockcount = 0; in xfs_refcount_lookup_eq()
124 irec->rc_blockcount = be32_to_cpu(rec->refc.rc_blockcount); in xfs_refcount_btrec_to_irec()
134 if (irec->rc_blockcount == 0 || irec->rc_blockcount > XFS_REFC_LEN_MAX) in xfs_refcount_check_irec()
141 if (!xfs_verify_agbext(pag, irec->rc_startblock, irec->rc_blockcount)) in xfs_refcount_check_irec()
155 if (irec->rc_blockcount == 0 || irec->rc_blockcount > XFS_REFC_LEN_MAX) in xfs_rtrefcount_check_irec()
162 if (!xfs_verify_rgbext(rtg, irec->rc_startblock, irec->rc_blockcount)) in xfs_rtrefcount_check_irec()
200 irec->rc_startblock, irec->rc_blockcount, irec->rc_refcount); in xfs_refcount_complain_bad_rec()
250 rec.refc.rc_blockcount = cpu_to_be32(irec->rc_blockcount); in xfs_refcount_update()
275 cur->bc_rec.rc.rc_blockcount = irec->rc_blockcount; in xfs_refcount_insert()
416 return rc->rc_startblock + rc->rc_blockcount; in xfs_refc_next()
459 tmp.rc_blockcount -= (agbno - rcext.rc_startblock); in xfs_refcount_split_extent()
466 tmp.rc_blockcount = agbno - rcext.rc_startblock; in xfs_refcount_split_extent()
551 left->rc_blockcount = extlen; in xfs_refcount_merge_center_extents()
615 left->rc_blockcount += cleft->rc_blockcount; in xfs_refcount_merge_left_extent()
620 *agbno += cleft->rc_blockcount; in xfs_refcount_merge_left_extent()
621 *aglen -= cleft->rc_blockcount; in xfs_refcount_merge_left_extent()
682 right->rc_startblock -= cright->rc_blockcount; in xfs_refcount_merge_right_extent()
683 right->rc_blockcount += cright->rc_blockcount; in xfs_refcount_merge_right_extent()
688 *aglen -= cright->rc_blockcount; in xfs_refcount_merge_right_extent()
765 cleft->rc_blockcount = min(aglen, in xfs_refcount_find_left_extents()
777 cleft->rc_blockcount = aglen; in xfs_refcount_find_left_extents()
858 cright->rc_blockcount = right->rc_startblock - in xfs_refcount_find_right_extents()
870 cright->rc_blockcount = aglen; in xfs_refcount_find_right_extents()
912 unsigned long long ulen = left->rc_blockcount; in xfs_refc_want_merge_center()
940 ulen += cleft->rc_blockcount + right->rc_blockcount; in xfs_refc_want_merge_center()
954 unsigned long long ulen = left->rc_blockcount; in xfs_refc_want_merge_left()
975 ulen += cleft->rc_blockcount; in xfs_refc_want_merge_left()
988 unsigned long long ulen = right->rc_blockcount; in xfs_refc_want_merge_right()
1009 ulen += cright->rc_blockcount; in xfs_refc_want_merge_right()
1054 (cleft.rc_blockcount == cright.rc_blockcount); in xfs_refcount_merge_extents()
1141 rec->rc_blockcount, NULL, XFS_AG_RESV_NONE, flags); in xrefc_free_extent()
1176 ext.rc_blockcount = 0; in xfs_refcount_adjust_extents()
1188 tmp.rc_blockcount = min(*aglen, in xfs_refcount_adjust_extents()
1217 (*agbno) += tmp.rc_blockcount; in xfs_refcount_adjust_extents()
1218 (*aglen) -= tmp.rc_blockcount; in xfs_refcount_adjust_extents()
1239 if (XFS_IS_CORRUPT(cur->bc_mp, ext.rc_blockcount == 0) || in xfs_refcount_adjust_extents()
1240 XFS_IS_CORRUPT(cur->bc_mp, ext.rc_blockcount > *aglen)) { in xfs_refcount_adjust_extents()
1281 (*agbno) += ext.rc_blockcount; in xfs_refcount_adjust_extents()
1282 (*aglen) -= ext.rc_blockcount; in xfs_refcount_adjust_extents()
1684 if (tmp.rc_startblock + tmp.rc_blockcount <= agbno) { in xfs_refcount_find_shared()
1708 tmp.rc_blockcount -= (agbno - tmp.rc_startblock); in xfs_refcount_find_shared()
1713 *flen = min(tmp.rc_blockcount, agbno + aglen - *fbno); in xfs_refcount_find_shared()
1736 *flen = min(*flen + tmp.rc_blockcount, agbno + aglen - *fbno); in xfs_refcount_find_shared()
1830 ext.rc_blockcount = 0; in xfs_refcount_adjust_cow_extents()
1846 tmp.rc_blockcount = aglen; in xfs_refcount_adjust_cow_extents()
1869 if (XFS_IS_CORRUPT(cur->bc_mp, ext.rc_blockcount != aglen)) { in xfs_refcount_adjust_cow_extents()
2138 rr->rr_rrec.rc_blockcount); in xfs_refcount_recover_cow_leftovers()
2142 rr->rr_rrec.rc_blockcount, NULL, in xfs_refcount_recover_cow_leftovers()