Lines Matching refs:cright

513 	struct xfs_refcount_irec	*cright,  in xfs_refcount_merge_right_extent()  argument
520 cur->bc_private.a.agno, cright, right); in xfs_refcount_merge_right_extent()
526 if (cright->rc_refcount > 1) { in xfs_refcount_merge_right_extent()
527 error = xfs_refcount_lookup_le(cur, cright->rc_startblock, in xfs_refcount_merge_right_extent()
548 right->rc_startblock -= cright->rc_blockcount; in xfs_refcount_merge_right_extent()
549 right->rc_blockcount += cright->rc_blockcount; in xfs_refcount_merge_right_extent()
554 *aglen -= cright->rc_blockcount; in xfs_refcount_merge_right_extent()
657 struct xfs_refcount_irec *cright, in xfs_refcount_find_right_extents() argument
666 right->rc_startblock = cright->rc_startblock = NULLAGBLOCK; in xfs_refcount_find_right_extents()
699 *cright = tmp; in xfs_refcount_find_right_extents()
709 cright->rc_startblock = max(agbno, xfs_refc_next(&tmp)); in xfs_refcount_find_right_extents()
710 cright->rc_blockcount = right->rc_startblock - in xfs_refcount_find_right_extents()
711 cright->rc_startblock; in xfs_refcount_find_right_extents()
712 cright->rc_refcount = 1; in xfs_refcount_find_right_extents()
719 cright->rc_startblock = agbno; in xfs_refcount_find_right_extents()
720 cright->rc_blockcount = aglen; in xfs_refcount_find_right_extents()
721 cright->rc_refcount = 1; in xfs_refcount_find_right_extents()
724 cright, right, agbno + aglen); in xfs_refcount_find_right_extents()
754 struct xfs_refcount_irec cright = {0}, right = {0}; in xfs_refcount_merge_extents() local
769 error = xfs_refcount_find_right_extents(cur, &right, &cright, *agbno, in xfs_refcount_merge_extents()
778 cequal = (cleft.rc_startblock == cright.rc_startblock) && in xfs_refcount_merge_extents()
779 (cleft.rc_blockcount == cright.rc_blockcount); in xfs_refcount_merge_extents()
785 xfs_refc_valid(&cleft) && xfs_refc_valid(&cright) && cequal && in xfs_refcount_merge_extents()
814 ulen = (unsigned long long)right.rc_blockcount + cright.rc_blockcount; in xfs_refcount_merge_extents()
815 if (xfs_refc_valid(&right) && xfs_refc_valid(&cright) && in xfs_refcount_merge_extents()
816 right.rc_refcount == cright.rc_refcount + adjust && in xfs_refcount_merge_extents()
819 return xfs_refcount_merge_right_extent(cur, &right, &cright, in xfs_refcount_merge_extents()