Lines Matching refs:cleft

537 	struct xfs_refcount_irec	*cleft,
545 cur->bc_ag.pag->pag_agno, left, cleft);
547 ASSERT(left->rc_domain == cleft->rc_domain);
549 /* If the extent at agbno (cleft) wasn't synthesized, remove it. */
550 if (cleft->rc_refcount > 1) {
551 error = xfs_refcount_lookup_le(cur, cleft->rc_domain,
552 cleft->rc_startblock, &found_rec);
582 left->rc_blockcount += cleft->rc_blockcount;
587 *agbno += cleft->rc_blockcount;
588 *aglen -= cleft->rc_blockcount;
667 * Find the left extent and the one after it (cleft). This function assumes
674 struct xfs_refcount_irec *cleft,
683 left->rc_startblock = cleft->rc_startblock = NULLAGBLOCK;
724 *cleft = tmp;
734 cleft->rc_startblock = agbno;
735 cleft->rc_blockcount = min(aglen,
737 cleft->rc_refcount = 1;
738 cleft->rc_domain = domain;
746 cleft->rc_startblock = agbno;
747 cleft->rc_blockcount = aglen;
748 cleft->rc_refcount = 1;
749 cleft->rc_domain = domain;
752 left, cleft, agbno);
878 const struct xfs_refcount_irec *cleft,
894 !xfs_refc_valid(cleft) || !xfs_refc_valid(cright))
902 new_refcount = xfs_refc_merge_refcount(cleft, adjust);
913 ulen += cleft->rc_blockcount + right->rc_blockcount;
924 const struct xfs_refcount_irec *cleft,
932 * start of the range. If this is true, find_left made left and cleft
935 if (!xfs_refc_valid(left) || !xfs_refc_valid(cleft))
939 new_refcount = xfs_refc_merge_refcount(cleft, adjust);
948 ulen += cleft->rc_blockcount;
1001 struct xfs_refcount_irec left = {0}, cleft = {0};
1009 * Find the extent just below agbno [left], just above agbno [cleft],
1013 error = xfs_refcount_find_left_extents(cur, &left, &cleft, domain,
1026 cequal = (cleft.rc_startblock == cright.rc_startblock) &&
1027 (cleft.rc_blockcount == cright.rc_blockcount);
1029 /* Try to merge left, cleft, and right. cleft must == cright. */
1030 if (xfs_refc_want_merge_center(&left, &cleft, &cright, &right, cequal,
1033 return xfs_refcount_merge_center_extents(cur, &left, &cleft,
1037 /* Try to merge left and cleft. */
1038 if (xfs_refc_want_merge_left(&left, &cleft, adjust)) {
1040 error = xfs_refcount_merge_left_extent(cur, &left, &cleft,
1046 * If we just merged left + cleft and cleft == cright,