Lines Matching refs:cleft

482 	struct xfs_refcount_irec	*cleft,
490 cur->bc_ag.agno, left, cleft);
492 /* If the extent at agbno (cleft) wasn't synthesized, remove it. */
493 if (cleft->rc_refcount > 1) {
494 error = xfs_refcount_lookup_le(cur, cleft->rc_startblock,
522 left->rc_blockcount += cleft->rc_blockcount;
527 *agbno += cleft->rc_blockcount;
528 *aglen -= cleft->rc_blockcount;
604 * Find the left extent and the one after it (cleft). This function assumes
611 struct xfs_refcount_irec *cleft,
620 left->rc_startblock = cleft->rc_startblock = NULLAGBLOCK;
658 *cleft = tmp;
668 cleft->rc_startblock = agbno;
669 cleft->rc_blockcount = min(aglen,
671 cleft->rc_refcount = 1;
678 cleft->rc_startblock = agbno;
679 cleft->rc_blockcount = aglen;
680 cleft->rc_refcount = 1;
683 left, cleft, agbno);
801 struct xfs_refcount_irec left = {0}, cleft = {0};
809 * Find the extent just below agbno [left], just above agbno [cleft],
813 error = xfs_refcount_find_left_extents(cur, &left, &cleft, *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. */
830 ulen = (unsigned long long)left.rc_blockcount + cleft.rc_blockcount +
833 xfs_refc_valid(&cleft) && xfs_refc_valid(&cright) && cequal &&
834 left.rc_refcount == cleft.rc_refcount + adjust &&
835 right.rc_refcount == cleft.rc_refcount + adjust &&
838 return xfs_refcount_merge_center_extents(cur, &left, &cleft,
842 /* Try to merge left and cleft. */
843 ulen = (unsigned long long)left.rc_blockcount + cleft.rc_blockcount;
844 if (xfs_refc_valid(&left) && xfs_refc_valid(&cleft) &&
845 left.rc_refcount == cleft.rc_refcount + adjust &&
848 error = xfs_refcount_merge_left_extent(cur, &left, &cleft,
854 * If we just merged left + cleft and cleft == cright,