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()
131 if (irec->rc_blockcount == 0 || irec->rc_blockcount > MAXREFCEXTLEN) in xfs_refcount_check_irec()
138 if (!xfs_verify_agbext(pag, irec->rc_startblock, irec->rc_blockcount)) in xfs_refcount_check_irec()
160 irec->rc_startblock, irec->rc_blockcount, irec->rc_refcount); in xfs_refcount_complain_bad_rec()
209 rec.refc.rc_blockcount = cpu_to_be32(irec->rc_blockcount); in xfs_refcount_update()
235 cur->bc_rec.rc.rc_blockcount = irec->rc_blockcount; in xfs_refcount_insert()
375 return rc->rc_startblock + rc->rc_blockcount; in xfs_refc_next()
418 tmp.rc_blockcount -= (agbno - rcext.rc_startblock); in xfs_refcount_split_extent()
425 tmp.rc_blockcount = agbno - rcext.rc_startblock; in xfs_refcount_split_extent()
507 left->rc_blockcount = extlen; in xfs_refcount_merge_center_extents()
570 left->rc_blockcount += cleft->rc_blockcount; in xfs_refcount_merge_left_extent()
575 *agbno += cleft->rc_blockcount; in xfs_refcount_merge_left_extent()
576 *aglen -= cleft->rc_blockcount; in xfs_refcount_merge_left_extent()
636 right->rc_startblock -= cright->rc_blockcount; in xfs_refcount_merge_right_extent()
637 right->rc_blockcount += cright->rc_blockcount; in xfs_refcount_merge_right_extent()
642 *aglen -= cright->rc_blockcount; in xfs_refcount_merge_right_extent()
718 cleft->rc_blockcount = min(aglen, in xfs_refcount_find_left_extents()
730 cleft->rc_blockcount = aglen; in xfs_refcount_find_left_extents()
811 cright->rc_blockcount = right->rc_startblock - in xfs_refcount_find_right_extents()
823 cright->rc_blockcount = aglen; in xfs_refcount_find_right_extents()
866 unsigned long long ulen = left->rc_blockcount; in xfs_refc_want_merge_center()
894 ulen += cleft->rc_blockcount + right->rc_blockcount; in xfs_refc_want_merge_center()
908 unsigned long long ulen = left->rc_blockcount; in xfs_refc_want_merge_left()
929 ulen += cleft->rc_blockcount; in xfs_refc_want_merge_left()
942 unsigned long long ulen = right->rc_blockcount; in xfs_refc_want_merge_right()
963 ulen += cright->rc_blockcount; in xfs_refc_want_merge_right()
1008 (cleft.rc_blockcount == cright.rc_blockcount); in xfs_refcount_merge_extents()
1115 ext.rc_blockcount = 0; in xfs_refcount_adjust_extents()
1127 tmp.rc_blockcount = min(*aglen, in xfs_refcount_adjust_extents()
1155 tmp.rc_blockcount, NULL, in xfs_refcount_adjust_extents()
1161 (*agbno) += tmp.rc_blockcount; in xfs_refcount_adjust_extents()
1162 (*aglen) -= tmp.rc_blockcount; in xfs_refcount_adjust_extents()
1183 if (XFS_IS_CORRUPT(cur->bc_mp, ext.rc_blockcount == 0) || in xfs_refcount_adjust_extents()
1184 XFS_IS_CORRUPT(cur->bc_mp, ext.rc_blockcount > *aglen)) { in xfs_refcount_adjust_extents()
1217 ext.rc_blockcount, NULL, in xfs_refcount_adjust_extents()
1229 (*agbno) += ext.rc_blockcount; in xfs_refcount_adjust_extents()
1230 (*aglen) -= ext.rc_blockcount; in xfs_refcount_adjust_extents()
1547 if (tmp.rc_startblock + tmp.rc_blockcount <= agbno) { in xfs_refcount_find_shared()
1570 tmp.rc_blockcount -= (agbno - tmp.rc_startblock); in xfs_refcount_find_shared()
1575 *flen = min(tmp.rc_blockcount, agbno + aglen - *fbno); in xfs_refcount_find_shared()
1597 *flen = min(*flen + tmp.rc_blockcount, agbno + aglen - *fbno); in xfs_refcount_find_shared()
1692 ext.rc_blockcount = 0; in xfs_refcount_adjust_cow_extents()
1707 tmp.rc_blockcount = aglen; in xfs_refcount_adjust_cow_extents()
1729 if (XFS_IS_CORRUPT(cur->bc_mp, ext.rc_blockcount != aglen)) { in xfs_refcount_adjust_cow_extents()
1983 rr->rr_rrec.rc_blockcount); in xfs_refcount_recover_cow_leftovers()
1987 rr->rr_rrec.rc_blockcount, NULL, in xfs_refcount_recover_cow_leftovers()