• Home
  • Raw
  • Download

Lines Matching refs:tmp

347 	struct xfs_refcount_irec	rcext, tmp;  in xfs_refcount_split_extent()  local
373 tmp = rcext; in xfs_refcount_split_extent()
374 tmp.rc_startblock = agbno; in xfs_refcount_split_extent()
375 tmp.rc_blockcount -= (agbno - rcext.rc_startblock); in xfs_refcount_split_extent()
376 error = xfs_refcount_update(cur, &tmp); in xfs_refcount_split_extent()
381 tmp = rcext; in xfs_refcount_split_extent()
382 tmp.rc_blockcount = agbno - rcext.rc_startblock; in xfs_refcount_split_extent()
383 error = xfs_refcount_insert(cur, &tmp, &found_rec); in xfs_refcount_split_extent()
616 struct xfs_refcount_irec tmp; in xfs_refcount_find_left_extents() local
627 error = xfs_refcount_get_rec(cur, &tmp, &found_rec); in xfs_refcount_find_left_extents()
635 if (xfs_refc_next(&tmp) != agbno) in xfs_refcount_find_left_extents()
637 if ((flags & XFS_FIND_RCEXT_SHARED) && tmp.rc_refcount < 2) in xfs_refcount_find_left_extents()
639 if ((flags & XFS_FIND_RCEXT_COW) && tmp.rc_refcount > 1) in xfs_refcount_find_left_extents()
642 *left = tmp; in xfs_refcount_find_left_extents()
648 error = xfs_refcount_get_rec(cur, &tmp, &found_rec); in xfs_refcount_find_left_extents()
657 if (tmp.rc_startblock == agbno) in xfs_refcount_find_left_extents()
658 *cleft = tmp; in xfs_refcount_find_left_extents()
670 tmp.rc_startblock - agbno); in xfs_refcount_find_left_extents()
705 struct xfs_refcount_irec tmp; in xfs_refcount_find_right_extents() local
716 error = xfs_refcount_get_rec(cur, &tmp, &found_rec); in xfs_refcount_find_right_extents()
724 if (tmp.rc_startblock != agbno + aglen) in xfs_refcount_find_right_extents()
726 if ((flags & XFS_FIND_RCEXT_SHARED) && tmp.rc_refcount < 2) in xfs_refcount_find_right_extents()
728 if ((flags & XFS_FIND_RCEXT_COW) && tmp.rc_refcount > 1) in xfs_refcount_find_right_extents()
731 *right = tmp; in xfs_refcount_find_right_extents()
737 error = xfs_refcount_get_rec(cur, &tmp, &found_rec); in xfs_refcount_find_right_extents()
746 if (xfs_refc_next(&tmp) == agbno + aglen) in xfs_refcount_find_right_extents()
747 *cright = tmp; in xfs_refcount_find_right_extents()
757 cright->rc_startblock = max(agbno, xfs_refc_next(&tmp)); in xfs_refcount_find_right_extents()
921 struct xfs_refcount_irec ext, tmp; in xfs_refcount_adjust_extents() local
950 tmp.rc_startblock = *agbno; in xfs_refcount_adjust_extents()
951 tmp.rc_blockcount = min(*aglen, in xfs_refcount_adjust_extents()
953 tmp.rc_refcount = 1 + adj; in xfs_refcount_adjust_extents()
955 cur->bc_ag.agno, &tmp); in xfs_refcount_adjust_extents()
961 if (tmp.rc_refcount) { in xfs_refcount_adjust_extents()
962 error = xfs_refcount_insert(cur, &tmp, in xfs_refcount_adjust_extents()
975 tmp.rc_startblock); in xfs_refcount_adjust_extents()
977 tmp.rc_blockcount, oinfo); in xfs_refcount_adjust_extents()
980 (*agbno) += tmp.rc_blockcount; in xfs_refcount_adjust_extents()
981 (*aglen) -= tmp.rc_blockcount; in xfs_refcount_adjust_extents()
1301 struct xfs_refcount_irec tmp; in xfs_refcount_find_shared() local
1325 error = xfs_refcount_get_rec(cur, &tmp, &i); in xfs_refcount_find_shared()
1334 if (tmp.rc_startblock + tmp.rc_blockcount <= agbno) { in xfs_refcount_find_shared()
1340 error = xfs_refcount_get_rec(cur, &tmp, &i); in xfs_refcount_find_shared()
1350 if (tmp.rc_startblock >= agbno + aglen) in xfs_refcount_find_shared()
1354 if (tmp.rc_startblock < agbno) { in xfs_refcount_find_shared()
1355 tmp.rc_blockcount -= (agbno - tmp.rc_startblock); in xfs_refcount_find_shared()
1356 tmp.rc_startblock = agbno; in xfs_refcount_find_shared()
1359 *fbno = tmp.rc_startblock; in xfs_refcount_find_shared()
1360 *flen = min(tmp.rc_blockcount, agbno + aglen - *fbno); in xfs_refcount_find_shared()
1371 error = xfs_refcount_get_rec(cur, &tmp, &i); in xfs_refcount_find_shared()
1378 if (tmp.rc_startblock >= agbno + aglen || in xfs_refcount_find_shared()
1379 tmp.rc_startblock != *fbno + *flen) in xfs_refcount_find_shared()
1381 *flen = min(*flen + tmp.rc_blockcount, agbno + aglen - *fbno); in xfs_refcount_find_shared()
1454 struct xfs_refcount_irec ext, tmp; in xfs_refcount_adjust_cow_extents() local
1484 tmp.rc_startblock = agbno; in xfs_refcount_adjust_cow_extents()
1485 tmp.rc_blockcount = aglen; in xfs_refcount_adjust_cow_extents()
1486 tmp.rc_refcount = 1; in xfs_refcount_adjust_cow_extents()
1488 cur->bc_ag.agno, &tmp); in xfs_refcount_adjust_cow_extents()
1490 error = xfs_refcount_insert(cur, &tmp, in xfs_refcount_adjust_cow_extents()