Lines Matching refs:cright

544 	struct xfs_refcount_irec	*cright,
551 cur->bc_ag.agno, cright, right);
554 * If the extent ending at agbno+aglen (cright) wasn't synthesized,
557 if (cright->rc_refcount > 1) {
558 error = xfs_refcount_lookup_le(cur, cright->rc_startblock,
586 right->rc_startblock -= cright->rc_blockcount;
587 right->rc_blockcount += cright->rc_blockcount;
592 *aglen -= cright->rc_blockcount;
693 * Find the right extent and the one before it (cright). This function
700 struct xfs_refcount_irec *cright,
709 right->rc_startblock = cright->rc_startblock = NULLAGBLOCK;
747 *cright = tmp;
757 cright->rc_startblock = max(agbno, xfs_refc_next(&tmp));
758 cright->rc_blockcount = right->rc_startblock -
759 cright->rc_startblock;
760 cright->rc_refcount = 1;
767 cright->rc_startblock = agbno;
768 cright->rc_blockcount = aglen;
769 cright->rc_refcount = 1;
772 cright, right, agbno + aglen);
802 struct xfs_refcount_irec cright = {0}, right = {0};
810 * just below (agbno + aglen) [cright], and just above (agbno + aglen)
817 error = xfs_refcount_find_right_extents(cur, &right, &cright, *agbno,
826 cequal = (cleft.rc_startblock == cright.rc_startblock) &&
827 (cleft.rc_blockcount == cright.rc_blockcount);
829 /* Try to merge left, cleft, and right. cleft must == cright. */
833 xfs_refc_valid(&cleft) && xfs_refc_valid(&cright) && cequal &&
854 * If we just merged left + cleft and cleft == cright,
855 * we no longer have a cright to merge with right. We're done.
861 /* Try to merge cright and right. */
862 ulen = (unsigned long long)right.rc_blockcount + cright.rc_blockcount;
863 if (xfs_refc_valid(&right) && xfs_refc_valid(&cright) &&
864 right.rc_refcount == cright.rc_refcount + adjust &&
867 return xfs_refcount_merge_right_extent(cur, &right, &cright,