Lines Matching refs:cleft
456 struct xfs_refcount_irec *cleft, in xfs_refcount_merge_left_extent() argument
464 cur->bc_private.a.agno, left, cleft); in xfs_refcount_merge_left_extent()
467 if (cleft->rc_refcount > 1) { in xfs_refcount_merge_left_extent()
468 error = xfs_refcount_lookup_le(cur, cleft->rc_startblock, in xfs_refcount_merge_left_extent()
489 left->rc_blockcount += cleft->rc_blockcount; in xfs_refcount_merge_left_extent()
494 *agbno += cleft->rc_blockcount; in xfs_refcount_merge_left_extent()
495 *aglen -= cleft->rc_blockcount; in xfs_refcount_merge_left_extent()
571 struct xfs_refcount_irec *cleft, in xfs_refcount_find_left_extents() argument
580 left->rc_startblock = cleft->rc_startblock = NULLAGBLOCK; in xfs_refcount_find_left_extents()
613 *cleft = tmp; in xfs_refcount_find_left_extents()
623 cleft->rc_startblock = agbno; in xfs_refcount_find_left_extents()
624 cleft->rc_blockcount = min(aglen, in xfs_refcount_find_left_extents()
626 cleft->rc_refcount = 1; in xfs_refcount_find_left_extents()
633 cleft->rc_startblock = agbno; in xfs_refcount_find_left_extents()
634 cleft->rc_blockcount = aglen; in xfs_refcount_find_left_extents()
635 cleft->rc_refcount = 1; in xfs_refcount_find_left_extents()
638 left, cleft, agbno); in xfs_refcount_find_left_extents()
751 struct xfs_refcount_irec left = {0}, cleft = {0}; in xfs_refcount_merge_extents() local
763 error = xfs_refcount_find_left_extents(cur, &left, &cleft, *agbno, in xfs_refcount_merge_extents()
776 cequal = (cleft.rc_startblock == cright.rc_startblock) && in xfs_refcount_merge_extents()
777 (cleft.rc_blockcount == cright.rc_blockcount); in xfs_refcount_merge_extents()
780 ulen = (unsigned long long)left.rc_blockcount + cleft.rc_blockcount + in xfs_refcount_merge_extents()
783 xfs_refc_valid(&cleft) && xfs_refc_valid(&cright) && cequal && in xfs_refcount_merge_extents()
784 left.rc_refcount == cleft.rc_refcount + adjust && in xfs_refcount_merge_extents()
785 right.rc_refcount == cleft.rc_refcount + adjust && in xfs_refcount_merge_extents()
788 return xfs_refcount_merge_center_extents(cur, &left, &cleft, in xfs_refcount_merge_extents()
793 ulen = (unsigned long long)left.rc_blockcount + cleft.rc_blockcount; in xfs_refcount_merge_extents()
794 if (xfs_refc_valid(&left) && xfs_refc_valid(&cleft) && in xfs_refcount_merge_extents()
795 left.rc_refcount == cleft.rc_refcount + adjust && in xfs_refcount_merge_extents()
798 error = xfs_refcount_merge_left_extent(cur, &left, &cleft, in xfs_refcount_merge_extents()