Lines Matching refs:cleft

528 	struct xfs_refcount_irec	*cleft,
536 cur->bc_ag.pag->pag_agno, left, cleft);
538 ASSERT(left->rc_domain == cleft->rc_domain);
540 /* If the extent at agbno (cleft) wasn't synthesized, remove it. */
541 if (cleft->rc_refcount > 1) {
542 error = xfs_refcount_lookup_le(cur, cleft->rc_domain,
543 cleft->rc_startblock, &found_rec);
570 left->rc_blockcount += cleft->rc_blockcount;
575 *agbno += cleft->rc_blockcount;
576 *aglen -= cleft->rc_blockcount;
652 * Find the left extent and the one after it (cleft). This function assumes
659 struct xfs_refcount_irec *cleft,
668 left->rc_startblock = cleft->rc_startblock = NULLAGBLOCK;
707 *cleft = tmp;
717 cleft->rc_startblock = agbno;
718 cleft->rc_blockcount = min(aglen,
720 cleft->rc_refcount = 1;
721 cleft->rc_domain = domain;
729 cleft->rc_startblock = agbno;
730 cleft->rc_blockcount = aglen;
731 cleft->rc_refcount = 1;
732 cleft->rc_domain = domain;
735 left, cleft, agbno);
859 const struct xfs_refcount_irec *cleft,
875 !xfs_refc_valid(cleft) || !xfs_refc_valid(cright))
883 new_refcount = xfs_refc_merge_refcount(cleft, adjust);
894 ulen += cleft->rc_blockcount + right->rc_blockcount;
905 const struct xfs_refcount_irec *cleft,
913 * start of the range. If this is true, find_left made left and cleft
916 if (!xfs_refc_valid(left) || !xfs_refc_valid(cleft))
920 new_refcount = xfs_refc_merge_refcount(cleft, adjust);
929 ulen += cleft->rc_blockcount;
982 struct xfs_refcount_irec left = {0}, cleft = {0};
990 * Find the extent just below agbno [left], just above agbno [cleft],
994 error = xfs_refcount_find_left_extents(cur, &left, &cleft, 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,
1014 return xfs_refcount_merge_center_extents(cur, &left, &cleft,
1018 /* Try to merge left and cleft. */
1019 if (xfs_refc_want_merge_left(&left, &cleft, adjust)) {
1021 error = xfs_refcount_merge_left_extent(cur, &left, &cleft,
1027 * If we just merged left + cleft and cleft == cright,