Lines Matching refs:cright
592 struct xfs_refcount_irec *cright,
599 cur->bc_ag.pag->pag_agno, cright, right);
601 ASSERT(right->rc_domain == cright->rc_domain);
604 * If the extent ending at agbno+aglen (cright) wasn't synthesized,
607 if (cright->rc_refcount > 1) {
608 error = xfs_refcount_lookup_le(cur, cright->rc_domain,
609 cright->rc_startblock, &found_rec);
636 right->rc_startblock -= cright->rc_blockcount;
637 right->rc_blockcount += cright->rc_blockcount;
642 *aglen -= cright->rc_blockcount;
745 * Find the right extent and the one before it (cright). This function
752 struct xfs_refcount_irec *cright,
761 right->rc_startblock = cright->rc_startblock = NULLAGBLOCK;
800 *cright = tmp;
810 cright->rc_startblock = max(agbno, xfs_refc_next(&tmp));
811 cright->rc_blockcount = right->rc_startblock -
812 cright->rc_startblock;
813 cright->rc_refcount = 1;
814 cright->rc_domain = domain;
822 cright->rc_startblock = agbno;
823 cright->rc_blockcount = aglen;
824 cright->rc_refcount = 1;
825 cright->rc_domain = domain;
828 cright, right, agbno + aglen);
860 const struct xfs_refcount_irec *cright,
875 !xfs_refc_valid(cleft) || !xfs_refc_valid(cright))
938 const struct xfs_refcount_irec *cright,
947 * end of the range. If this is true, find_right made cright and right
950 if (!xfs_refc_valid(right) || !xfs_refc_valid(cright))
954 new_refcount = xfs_refc_merge_refcount(cright, adjust);
963 ulen += cright->rc_blockcount;
983 struct xfs_refcount_irec cright = {0}, right = {0};
991 * just below (agbno + aglen) [cright], and just above (agbno + aglen)
998 error = xfs_refcount_find_right_extents(cur, &right, &cright, domain,
1007 cequal = (cleft.rc_startblock == cright.rc_startblock) &&
1008 (cleft.rc_blockcount == cright.rc_blockcount);
1010 /* Try to merge left, cleft, and right. cleft must == cright. */
1011 if (xfs_refc_want_merge_center(&left, &cleft, &cright, &right, cequal,
1027 * If we just merged left + cleft and cleft == cright,
1028 * we no longer have a cright to merge with right. We're done.
1034 /* Try to merge cright and right. */
1035 if (xfs_refc_want_merge_right(&cright, &right, adjust)) {
1037 return xfs_refcount_merge_right_extent(cur, &right, &cright,