Lines Matching refs:cright
544 struct xfs_refcount_irec *cright, in xfs_refcount_merge_right_extent() argument
551 cur->bc_ag.agno, cright, right); in xfs_refcount_merge_right_extent()
557 if (cright->rc_refcount > 1) { in xfs_refcount_merge_right_extent()
558 error = xfs_refcount_lookup_le(cur, cright->rc_startblock, in xfs_refcount_merge_right_extent()
586 right->rc_startblock -= cright->rc_blockcount; in xfs_refcount_merge_right_extent()
587 right->rc_blockcount += cright->rc_blockcount; in xfs_refcount_merge_right_extent()
592 *aglen -= cright->rc_blockcount; in xfs_refcount_merge_right_extent()
700 struct xfs_refcount_irec *cright, in xfs_refcount_find_right_extents() argument
709 right->rc_startblock = cright->rc_startblock = NULLAGBLOCK; in xfs_refcount_find_right_extents()
747 *cright = tmp; in xfs_refcount_find_right_extents()
757 cright->rc_startblock = max(agbno, xfs_refc_next(&tmp)); in xfs_refcount_find_right_extents()
758 cright->rc_blockcount = right->rc_startblock - in xfs_refcount_find_right_extents()
759 cright->rc_startblock; in xfs_refcount_find_right_extents()
760 cright->rc_refcount = 1; in xfs_refcount_find_right_extents()
767 cright->rc_startblock = agbno; in xfs_refcount_find_right_extents()
768 cright->rc_blockcount = aglen; in xfs_refcount_find_right_extents()
769 cright->rc_refcount = 1; in xfs_refcount_find_right_extents()
772 cright, right, agbno + aglen); in xfs_refcount_find_right_extents()
802 struct xfs_refcount_irec cright = {0}, right = {0}; in xfs_refcount_merge_extents() local
817 error = xfs_refcount_find_right_extents(cur, &right, &cright, *agbno, in xfs_refcount_merge_extents()
826 cequal = (cleft.rc_startblock == cright.rc_startblock) && in xfs_refcount_merge_extents()
827 (cleft.rc_blockcount == cright.rc_blockcount); in xfs_refcount_merge_extents()
833 xfs_refc_valid(&cleft) && xfs_refc_valid(&cright) && cequal && in xfs_refcount_merge_extents()
862 ulen = (unsigned long long)right.rc_blockcount + cright.rc_blockcount; in xfs_refcount_merge_extents()
863 if (xfs_refc_valid(&right) && xfs_refc_valid(&cright) && in xfs_refcount_merge_extents()
864 right.rc_refcount == cright.rc_refcount + adjust && in xfs_refcount_merge_extents()
867 return xfs_refcount_merge_right_extent(cur, &right, &cright, in xfs_refcount_merge_extents()