Lines Matching refs:cright

596 	struct xfs_refcount_irec	*cright,  in xfs_refcount_merge_right_extent()  argument
602 trace_xfs_refcount_merge_right_extent(cur, cright, right); in xfs_refcount_merge_right_extent()
604 ASSERT(right->rc_domain == cright->rc_domain); in xfs_refcount_merge_right_extent()
610 if (cright->rc_refcount > 1) { in xfs_refcount_merge_right_extent()
611 error = xfs_refcount_lookup_le(cur, cright->rc_domain, in xfs_refcount_merge_right_extent()
612 cright->rc_startblock, &found_rec); in xfs_refcount_merge_right_extent()
642 right->rc_startblock -= cright->rc_blockcount; in xfs_refcount_merge_right_extent()
643 right->rc_blockcount += cright->rc_blockcount; in xfs_refcount_merge_right_extent()
648 *aglen -= cright->rc_blockcount; in xfs_refcount_merge_right_extent()
757 struct xfs_refcount_irec *cright, in xfs_refcount_find_right_extents() argument
766 right->rc_startblock = cright->rc_startblock = NULLAGBLOCK; in xfs_refcount_find_right_extents()
807 *cright = tmp; in xfs_refcount_find_right_extents()
817 cright->rc_startblock = max(agbno, xfs_refc_next(&tmp)); in xfs_refcount_find_right_extents()
818 cright->rc_blockcount = right->rc_startblock - in xfs_refcount_find_right_extents()
819 cright->rc_startblock; in xfs_refcount_find_right_extents()
820 cright->rc_refcount = 1; in xfs_refcount_find_right_extents()
821 cright->rc_domain = domain; in xfs_refcount_find_right_extents()
829 cright->rc_startblock = agbno; in xfs_refcount_find_right_extents()
830 cright->rc_blockcount = aglen; in xfs_refcount_find_right_extents()
831 cright->rc_refcount = 1; in xfs_refcount_find_right_extents()
832 cright->rc_domain = domain; in xfs_refcount_find_right_extents()
834 trace_xfs_refcount_find_right_extent(cur, cright, right, in xfs_refcount_find_right_extents()
866 const struct xfs_refcount_irec *cright, in xfs_refc_want_merge_center() argument
881 !xfs_refc_valid(cleft) || !xfs_refc_valid(cright)) in xfs_refc_want_merge_center()
944 const struct xfs_refcount_irec *cright, in xfs_refc_want_merge_right() argument
956 if (!xfs_refc_valid(right) || !xfs_refc_valid(cright)) in xfs_refc_want_merge_right()
960 new_refcount = xfs_refc_merge_refcount(cright, adjust); in xfs_refc_want_merge_right()
969 ulen += cright->rc_blockcount; in xfs_refc_want_merge_right()
989 struct xfs_refcount_irec cright = {0}, right = {0}; in xfs_refcount_merge_extents() local
1004 error = xfs_refcount_find_right_extents(cur, &right, &cright, domain, in xfs_refcount_merge_extents()
1013 cequal = (cleft.rc_startblock == cright.rc_startblock) && in xfs_refcount_merge_extents()
1014 (cleft.rc_blockcount == cright.rc_blockcount); in xfs_refcount_merge_extents()
1017 if (xfs_refc_want_merge_center(&left, &cleft, &cright, &right, cequal, in xfs_refcount_merge_extents()
1041 if (xfs_refc_want_merge_right(&cright, &right, adjust)) { in xfs_refcount_merge_extents()
1043 return xfs_refcount_merge_right_extent(cur, &right, &cright, in xfs_refcount_merge_extents()