Lines Matching refs:rc_blockcount
52 cur->bc_rec.rc.rc_blockcount = 0; in xfs_refcount_lookup_le()
69 cur->bc_rec.rc.rc_blockcount = 0; in xfs_refcount_lookup_ge()
86 cur->bc_rec.rc.rc_blockcount = 0; in xfs_refcount_lookup_eq()
97 irec->rc_blockcount = be32_to_cpu(rec->refc.rc_blockcount); in xfs_refcount_btrec_to_irec()
123 if (irec->rc_blockcount == 0 || irec->rc_blockcount > MAXREFCEXTLEN) in xfs_refcount_get_rec()
139 if (realstart > realstart + irec->rc_blockcount) in xfs_refcount_get_rec()
141 if (!xfs_verify_agbno(mp, agno, realstart + irec->rc_blockcount - 1)) in xfs_refcount_get_rec()
155 irec->rc_startblock, irec->rc_blockcount, irec->rc_refcount); in xfs_refcount_get_rec()
174 rec.refc.rc_blockcount = cpu_to_be32(irec->rc_blockcount); in xfs_refcount_update()
198 cur->bc_rec.rc.rc_blockcount = irec->rc_blockcount; in xfs_refcount_insert()
335 return rc->rc_startblock + rc->rc_blockcount; in xfs_refc_next()
375 tmp.rc_blockcount -= (agbno - rcext.rc_startblock); in xfs_refcount_split_extent()
382 tmp.rc_blockcount = agbno - rcext.rc_startblock; in xfs_refcount_split_extent()
461 left->rc_blockcount = extlen; in xfs_refcount_merge_center_extents()
522 left->rc_blockcount += cleft->rc_blockcount; in xfs_refcount_merge_left_extent()
527 *agbno += cleft->rc_blockcount; in xfs_refcount_merge_left_extent()
528 *aglen -= cleft->rc_blockcount; in xfs_refcount_merge_left_extent()
586 right->rc_startblock -= cright->rc_blockcount; in xfs_refcount_merge_right_extent()
587 right->rc_blockcount += cright->rc_blockcount; in xfs_refcount_merge_right_extent()
592 *aglen -= cright->rc_blockcount; in xfs_refcount_merge_right_extent()
669 cleft->rc_blockcount = min(aglen, in xfs_refcount_find_left_extents()
679 cleft->rc_blockcount = aglen; in xfs_refcount_find_left_extents()
758 cright->rc_blockcount = right->rc_startblock - in xfs_refcount_find_right_extents()
768 cright->rc_blockcount = aglen; in xfs_refcount_find_right_extents()
827 (cleft.rc_blockcount == cright.rc_blockcount); in xfs_refcount_merge_extents()
830 ulen = (unsigned long long)left.rc_blockcount + cleft.rc_blockcount + in xfs_refcount_merge_extents()
831 right.rc_blockcount; in xfs_refcount_merge_extents()
843 ulen = (unsigned long long)left.rc_blockcount + cleft.rc_blockcount; in xfs_refcount_merge_extents()
862 ulen = (unsigned long long)right.rc_blockcount + cright.rc_blockcount; in xfs_refcount_merge_extents()
940 ext.rc_blockcount = 0; in xfs_refcount_adjust_extents()
951 tmp.rc_blockcount = min(*aglen, in xfs_refcount_adjust_extents()
977 tmp.rc_blockcount, oinfo); in xfs_refcount_adjust_extents()
980 (*agbno) += tmp.rc_blockcount; in xfs_refcount_adjust_extents()
981 (*aglen) -= tmp.rc_blockcount; in xfs_refcount_adjust_extents()
1021 xfs_bmap_add_free(cur->bc_tp, fsbno, ext.rc_blockcount, in xfs_refcount_adjust_extents()
1031 (*agbno) += ext.rc_blockcount; in xfs_refcount_adjust_extents()
1032 (*aglen) -= ext.rc_blockcount; in xfs_refcount_adjust_extents()
1334 if (tmp.rc_startblock + tmp.rc_blockcount <= agbno) { in xfs_refcount_find_shared()
1355 tmp.rc_blockcount -= (agbno - tmp.rc_startblock); in xfs_refcount_find_shared()
1360 *flen = min(tmp.rc_blockcount, agbno + aglen - *fbno); in xfs_refcount_find_shared()
1381 *flen = min(*flen + tmp.rc_blockcount, agbno + aglen - *fbno); in xfs_refcount_find_shared()
1471 ext.rc_blockcount = 0; in xfs_refcount_adjust_cow_extents()
1485 tmp.rc_blockcount = aglen; in xfs_refcount_adjust_cow_extents()
1505 if (XFS_IS_CORRUPT(cur->bc_mp, ext.rc_blockcount != aglen)) { in xfs_refcount_adjust_cow_extents()
1747 rr->rr_rrec.rc_blockcount); in xfs_refcount_recover_cow_leftovers()
1750 xfs_bmap_add_free(tp, fsb, rr->rr_rrec.rc_blockcount, NULL); in xfs_refcount_recover_cow_leftovers()