Lines Matching refs:cleft
531 struct xfs_refcount_irec *cleft, in xfs_refcount_merge_left_extent() argument
538 trace_xfs_refcount_merge_left_extent(cur, left, cleft); in xfs_refcount_merge_left_extent()
540 ASSERT(left->rc_domain == cleft->rc_domain); in xfs_refcount_merge_left_extent()
543 if (cleft->rc_refcount > 1) { in xfs_refcount_merge_left_extent()
544 error = xfs_refcount_lookup_le(cur, cleft->rc_domain, in xfs_refcount_merge_left_extent()
545 cleft->rc_startblock, &found_rec); in xfs_refcount_merge_left_extent()
575 left->rc_blockcount += cleft->rc_blockcount; in xfs_refcount_merge_left_extent()
580 *agbno += cleft->rc_blockcount; in xfs_refcount_merge_left_extent()
581 *aglen -= cleft->rc_blockcount; in xfs_refcount_merge_left_extent()
664 struct xfs_refcount_irec *cleft, in xfs_refcount_find_left_extents() argument
673 left->rc_startblock = cleft->rc_startblock = NULLAGBLOCK; in xfs_refcount_find_left_extents()
714 *cleft = tmp; in xfs_refcount_find_left_extents()
724 cleft->rc_startblock = agbno; in xfs_refcount_find_left_extents()
725 cleft->rc_blockcount = min(aglen, in xfs_refcount_find_left_extents()
727 cleft->rc_refcount = 1; in xfs_refcount_find_left_extents()
728 cleft->rc_domain = domain; in xfs_refcount_find_left_extents()
736 cleft->rc_startblock = agbno; in xfs_refcount_find_left_extents()
737 cleft->rc_blockcount = aglen; in xfs_refcount_find_left_extents()
738 cleft->rc_refcount = 1; in xfs_refcount_find_left_extents()
739 cleft->rc_domain = domain; in xfs_refcount_find_left_extents()
741 trace_xfs_refcount_find_left_extent(cur, left, cleft, agbno); in xfs_refcount_find_left_extents()
865 const struct xfs_refcount_irec *cleft, in xfs_refc_want_merge_center() argument
881 !xfs_refc_valid(cleft) || !xfs_refc_valid(cright)) in xfs_refc_want_merge_center()
889 new_refcount = xfs_refc_merge_refcount(cleft, adjust); in xfs_refc_want_merge_center()
900 ulen += cleft->rc_blockcount + right->rc_blockcount; in xfs_refc_want_merge_center()
911 const struct xfs_refcount_irec *cleft, in xfs_refc_want_merge_left() argument
922 if (!xfs_refc_valid(left) || !xfs_refc_valid(cleft)) in xfs_refc_want_merge_left()
926 new_refcount = xfs_refc_merge_refcount(cleft, adjust); in xfs_refc_want_merge_left()
935 ulen += cleft->rc_blockcount; in xfs_refc_want_merge_left()
988 struct xfs_refcount_irec left = {0}, cleft = {0}; in xfs_refcount_merge_extents() local
1000 error = xfs_refcount_find_left_extents(cur, &left, &cleft, domain, in xfs_refcount_merge_extents()
1013 cequal = (cleft.rc_startblock == cright.rc_startblock) && in xfs_refcount_merge_extents()
1014 (cleft.rc_blockcount == cright.rc_blockcount); in xfs_refcount_merge_extents()
1017 if (xfs_refc_want_merge_center(&left, &cleft, &cright, &right, cequal, in xfs_refcount_merge_extents()
1020 return xfs_refcount_merge_center_extents(cur, &left, &cleft, in xfs_refcount_merge_extents()
1025 if (xfs_refc_want_merge_left(&left, &cleft, adjust)) { in xfs_refcount_merge_extents()
1027 error = xfs_refcount_merge_left_extent(cur, &left, &cleft, in xfs_refcount_merge_extents()