Lines Matching refs:rc_blockcount

57 	cur->bc_rec.rc.rc_blockcount = 0;  in xfs_refcount_lookup_le()
77 cur->bc_rec.rc.rc_blockcount = 0; in xfs_refcount_lookup_ge()
97 cur->bc_rec.rc.rc_blockcount = 0; in xfs_refcount_lookup_eq()
119 irec->rc_blockcount = be32_to_cpu(rec->refc.rc_blockcount); in xfs_refcount_btrec_to_irec()
142 if (irec->rc_blockcount == 0 || irec->rc_blockcount > MAXREFCEXTLEN) in xfs_refcount_get_rec()
149 if (!xfs_verify_agbext(pag, irec->rc_startblock, irec->rc_blockcount)) in xfs_refcount_get_rec()
164 irec->rc_startblock, irec->rc_blockcount, irec->rc_refcount); in xfs_refcount_get_rec()
187 rec.refc.rc_blockcount = cpu_to_be32(irec->rc_blockcount); in xfs_refcount_update()
213 cur->bc_rec.rc.rc_blockcount = irec->rc_blockcount; in xfs_refcount_insert()
353 return rc->rc_startblock + rc->rc_blockcount; in xfs_refc_next()
396 tmp.rc_blockcount -= (agbno - rcext.rc_startblock); in xfs_refcount_split_extent()
403 tmp.rc_blockcount = agbno - rcext.rc_startblock; in xfs_refcount_split_extent()
485 left->rc_blockcount = extlen; in xfs_refcount_merge_center_extents()
548 left->rc_blockcount += cleft->rc_blockcount; in xfs_refcount_merge_left_extent()
553 *agbno += cleft->rc_blockcount; in xfs_refcount_merge_left_extent()
554 *aglen -= cleft->rc_blockcount; in xfs_refcount_merge_left_extent()
614 right->rc_startblock -= cright->rc_blockcount; in xfs_refcount_merge_right_extent()
615 right->rc_blockcount += cright->rc_blockcount; in xfs_refcount_merge_right_extent()
620 *aglen -= cright->rc_blockcount; in xfs_refcount_merge_right_extent()
696 cleft->rc_blockcount = min(aglen, in xfs_refcount_find_left_extents()
708 cleft->rc_blockcount = aglen; in xfs_refcount_find_left_extents()
789 cright->rc_blockcount = right->rc_startblock - in xfs_refcount_find_right_extents()
801 cright->rc_blockcount = aglen; in xfs_refcount_find_right_extents()
844 unsigned long long ulen = left->rc_blockcount; in xfs_refc_want_merge_center()
872 ulen += cleft->rc_blockcount + right->rc_blockcount; in xfs_refc_want_merge_center()
886 unsigned long long ulen = left->rc_blockcount; in xfs_refc_want_merge_left()
907 ulen += cleft->rc_blockcount; in xfs_refc_want_merge_left()
920 unsigned long long ulen = right->rc_blockcount; in xfs_refc_want_merge_right()
941 ulen += cright->rc_blockcount; in xfs_refc_want_merge_right()
986 (cleft.rc_blockcount == cright.rc_blockcount); in xfs_refcount_merge_extents()
1093 ext.rc_blockcount = 0; in xfs_refcount_adjust_extents()
1105 tmp.rc_blockcount = min(*aglen, in xfs_refcount_adjust_extents()
1133 tmp.rc_blockcount, NULL); in xfs_refcount_adjust_extents()
1136 (*agbno) += tmp.rc_blockcount; in xfs_refcount_adjust_extents()
1137 (*aglen) -= tmp.rc_blockcount; in xfs_refcount_adjust_extents()
1158 if (XFS_IS_CORRUPT(cur->bc_mp, ext.rc_blockcount == 0) || in xfs_refcount_adjust_extents()
1159 XFS_IS_CORRUPT(cur->bc_mp, ext.rc_blockcount > *aglen)) { in xfs_refcount_adjust_extents()
1192 ext.rc_blockcount, NULL); in xfs_refcount_adjust_extents()
1201 (*agbno) += ext.rc_blockcount; in xfs_refcount_adjust_extents()
1202 (*aglen) -= ext.rc_blockcount; in xfs_refcount_adjust_extents()
1524 if (tmp.rc_startblock + tmp.rc_blockcount <= agbno) { in xfs_refcount_find_shared()
1547 tmp.rc_blockcount -= (agbno - tmp.rc_startblock); in xfs_refcount_find_shared()
1552 *flen = min(tmp.rc_blockcount, agbno + aglen - *fbno); in xfs_refcount_find_shared()
1574 *flen = min(*flen + tmp.rc_blockcount, agbno + aglen - *fbno); in xfs_refcount_find_shared()
1669 ext.rc_blockcount = 0; in xfs_refcount_adjust_cow_extents()
1684 tmp.rc_blockcount = aglen; in xfs_refcount_adjust_cow_extents()
1706 if (XFS_IS_CORRUPT(cur->bc_mp, ext.rc_blockcount != aglen)) { in xfs_refcount_adjust_cow_extents()
1958 rr->rr_rrec.rc_blockcount); in xfs_refcount_recover_cow_leftovers()
1961 xfs_free_extent_later(tp, fsb, rr->rr_rrec.rc_blockcount, NULL); in xfs_refcount_recover_cow_leftovers()