Lines Matching refs:cright
570 struct xfs_refcount_irec *cright, in xfs_refcount_merge_right_extent() argument
577 cur->bc_ag.pag->pag_agno, cright, right); in xfs_refcount_merge_right_extent()
579 ASSERT(right->rc_domain == cright->rc_domain); in xfs_refcount_merge_right_extent()
585 if (cright->rc_refcount > 1) { in xfs_refcount_merge_right_extent()
586 error = xfs_refcount_lookup_le(cur, cright->rc_domain, in xfs_refcount_merge_right_extent()
587 cright->rc_startblock, &found_rec); in xfs_refcount_merge_right_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()
730 struct xfs_refcount_irec *cright, in xfs_refcount_find_right_extents() argument
739 right->rc_startblock = cright->rc_startblock = NULLAGBLOCK; in xfs_refcount_find_right_extents()
778 *cright = tmp; in xfs_refcount_find_right_extents()
788 cright->rc_startblock = max(agbno, xfs_refc_next(&tmp)); in xfs_refcount_find_right_extents()
789 cright->rc_blockcount = right->rc_startblock - in xfs_refcount_find_right_extents()
790 cright->rc_startblock; in xfs_refcount_find_right_extents()
791 cright->rc_refcount = 1; in xfs_refcount_find_right_extents()
792 cright->rc_domain = domain; in xfs_refcount_find_right_extents()
800 cright->rc_startblock = agbno; in xfs_refcount_find_right_extents()
801 cright->rc_blockcount = aglen; in xfs_refcount_find_right_extents()
802 cright->rc_refcount = 1; in xfs_refcount_find_right_extents()
803 cright->rc_domain = domain; in xfs_refcount_find_right_extents()
806 cright, right, agbno + aglen); in xfs_refcount_find_right_extents()
838 const struct xfs_refcount_irec *cright, in xfs_refc_want_merge_center() argument
853 !xfs_refc_valid(cleft) || !xfs_refc_valid(cright)) in xfs_refc_want_merge_center()
916 const struct xfs_refcount_irec *cright, in xfs_refc_want_merge_right() argument
928 if (!xfs_refc_valid(right) || !xfs_refc_valid(cright)) in xfs_refc_want_merge_right()
932 new_refcount = xfs_refc_merge_refcount(cright, adjust); in xfs_refc_want_merge_right()
941 ulen += cright->rc_blockcount; in xfs_refc_want_merge_right()
961 struct xfs_refcount_irec cright = {0}, right = {0}; in xfs_refcount_merge_extents() local
976 error = xfs_refcount_find_right_extents(cur, &right, &cright, domain, in xfs_refcount_merge_extents()
985 cequal = (cleft.rc_startblock == cright.rc_startblock) && in xfs_refcount_merge_extents()
986 (cleft.rc_blockcount == cright.rc_blockcount); in xfs_refcount_merge_extents()
989 if (xfs_refc_want_merge_center(&left, &cleft, &cright, &right, cequal, in xfs_refcount_merge_extents()
1013 if (xfs_refc_want_merge_right(&cright, &right, adjust)) { in xfs_refcount_merge_extents()
1015 return xfs_refcount_merge_right_extent(cur, &right, &cright, in xfs_refcount_merge_extents()