Lines Matching refs:tmp
429 struct xfs_refcount_irec rcext, tmp; in xfs_refcount_split_extent() local
457 tmp = rcext; in xfs_refcount_split_extent()
458 tmp.rc_startblock = agbno; in xfs_refcount_split_extent()
459 tmp.rc_blockcount -= (agbno - rcext.rc_startblock); in xfs_refcount_split_extent()
460 error = xfs_refcount_update(cur, &tmp); in xfs_refcount_split_extent()
465 tmp = rcext; in xfs_refcount_split_extent()
466 tmp.rc_blockcount = agbno - rcext.rc_startblock; in xfs_refcount_split_extent()
467 error = xfs_refcount_insert(cur, &tmp, &found_rec); in xfs_refcount_split_extent()
709 struct xfs_refcount_irec tmp; in xfs_refcount_find_left_extents() local
720 error = xfs_refcount_get_rec(cur, &tmp, &found_rec); in xfs_refcount_find_left_extents()
729 if (tmp.rc_domain != domain) in xfs_refcount_find_left_extents()
731 if (xfs_refc_next(&tmp) != agbno) in xfs_refcount_find_left_extents()
734 *left = tmp; in xfs_refcount_find_left_extents()
740 error = xfs_refcount_get_rec(cur, &tmp, &found_rec); in xfs_refcount_find_left_extents()
749 if (tmp.rc_domain != domain) in xfs_refcount_find_left_extents()
753 if (tmp.rc_startblock == agbno) in xfs_refcount_find_left_extents()
754 *cleft = tmp; in xfs_refcount_find_left_extents()
766 tmp.rc_startblock - agbno); in xfs_refcount_find_left_extents()
802 struct xfs_refcount_irec tmp; in xfs_refcount_find_right_extents() local
813 error = xfs_refcount_get_rec(cur, &tmp, &found_rec); in xfs_refcount_find_right_extents()
822 if (tmp.rc_domain != domain) in xfs_refcount_find_right_extents()
824 if (tmp.rc_startblock != agbno + aglen) in xfs_refcount_find_right_extents()
827 *right = tmp; in xfs_refcount_find_right_extents()
833 error = xfs_refcount_get_rec(cur, &tmp, &found_rec); in xfs_refcount_find_right_extents()
842 if (tmp.rc_domain != domain) in xfs_refcount_find_right_extents()
846 if (xfs_refc_next(&tmp) == agbno + aglen) in xfs_refcount_find_right_extents()
847 *cright = tmp; in xfs_refcount_find_right_extents()
857 cright->rc_startblock = max(agbno, xfs_refc_next(&tmp)); in xfs_refcount_find_right_extents()
1157 struct xfs_refcount_irec ext, tmp; in xfs_refcount_adjust_extents() local
1187 tmp.rc_startblock = *agbno; in xfs_refcount_adjust_extents()
1188 tmp.rc_blockcount = min(*aglen, in xfs_refcount_adjust_extents()
1190 tmp.rc_refcount = 1 + adj; in xfs_refcount_adjust_extents()
1191 tmp.rc_domain = XFS_REFC_DOMAIN_SHARED; in xfs_refcount_adjust_extents()
1193 trace_xfs_refcount_modify_extent(cur, &tmp); in xfs_refcount_adjust_extents()
1200 if (tmp.rc_refcount) { in xfs_refcount_adjust_extents()
1201 error = xfs_refcount_insert(cur, &tmp, in xfs_refcount_adjust_extents()
1212 error = xrefc_free_extent(cur, &tmp); in xfs_refcount_adjust_extents()
1217 (*agbno) += tmp.rc_blockcount; in xfs_refcount_adjust_extents()
1218 (*aglen) -= tmp.rc_blockcount; in xfs_refcount_adjust_extents()
1648 struct xfs_refcount_irec tmp; in xfs_refcount_find_shared() local
1672 error = xfs_refcount_get_rec(cur, &tmp, &i); in xfs_refcount_find_shared()
1680 if (tmp.rc_domain != XFS_REFC_DOMAIN_SHARED) in xfs_refcount_find_shared()
1684 if (tmp.rc_startblock + tmp.rc_blockcount <= agbno) { in xfs_refcount_find_shared()
1690 error = xfs_refcount_get_rec(cur, &tmp, &i); in xfs_refcount_find_shared()
1698 if (tmp.rc_domain != XFS_REFC_DOMAIN_SHARED) in xfs_refcount_find_shared()
1703 if (tmp.rc_startblock >= agbno + aglen) in xfs_refcount_find_shared()
1707 if (tmp.rc_startblock < agbno) { in xfs_refcount_find_shared()
1708 tmp.rc_blockcount -= (agbno - tmp.rc_startblock); in xfs_refcount_find_shared()
1709 tmp.rc_startblock = agbno; in xfs_refcount_find_shared()
1712 *fbno = tmp.rc_startblock; in xfs_refcount_find_shared()
1713 *flen = min(tmp.rc_blockcount, agbno + aglen - *fbno); in xfs_refcount_find_shared()
1724 error = xfs_refcount_get_rec(cur, &tmp, &i); in xfs_refcount_find_shared()
1732 if (tmp.rc_domain != XFS_REFC_DOMAIN_SHARED || in xfs_refcount_find_shared()
1733 tmp.rc_startblock >= agbno + aglen || in xfs_refcount_find_shared()
1734 tmp.rc_startblock != *fbno + *flen) in xfs_refcount_find_shared()
1736 *flen = min(*flen + tmp.rc_blockcount, agbno + aglen - *fbno); in xfs_refcount_find_shared()
1807 struct xfs_refcount_irec ext, tmp; in xfs_refcount_adjust_cow_extents() local
1845 tmp.rc_startblock = agbno; in xfs_refcount_adjust_cow_extents()
1846 tmp.rc_blockcount = aglen; in xfs_refcount_adjust_cow_extents()
1847 tmp.rc_refcount = 1; in xfs_refcount_adjust_cow_extents()
1848 tmp.rc_domain = XFS_REFC_DOMAIN_COW; in xfs_refcount_adjust_cow_extents()
1850 trace_xfs_refcount_modify_extent(cur, &tmp); in xfs_refcount_adjust_cow_extents()
1852 error = xfs_refcount_insert(cur, &tmp, in xfs_refcount_adjust_cow_extents()