• Home
  • Raw
  • Download

Lines Matching refs:agbno

35 		xfs_agblock_t agbno, xfs_extlen_t aglen);
37 xfs_agblock_t agbno, xfs_extlen_t aglen);
344 xfs_agblock_t agbno, in xfs_refcount_split_extent() argument
352 error = xfs_refcount_lookup_le(cur, agbno, &found_rec); in xfs_refcount_split_extent()
365 if (rcext.rc_startblock == agbno || xfs_refc_next(&rcext) <= agbno) in xfs_refcount_split_extent()
370 &rcext, agbno); 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()
382 tmp.rc_blockcount = agbno - rcext.rc_startblock; in xfs_refcount_split_extent()
483 xfs_agblock_t *agbno, in xfs_refcount_merge_left_extent() argument
527 *agbno += cleft->rc_blockcount; in xfs_refcount_merge_left_extent()
612 xfs_agblock_t agbno, in xfs_refcount_find_left_extents() argument
621 error = xfs_refcount_lookup_le(cur, agbno - 1, &found_rec); in xfs_refcount_find_left_extents()
635 if (xfs_refc_next(&tmp) != agbno) in xfs_refcount_find_left_extents()
657 if (tmp.rc_startblock == agbno) in xfs_refcount_find_left_extents()
668 cleft->rc_startblock = agbno; in xfs_refcount_find_left_extents()
670 tmp.rc_startblock - agbno); in xfs_refcount_find_left_extents()
678 cleft->rc_startblock = agbno; in xfs_refcount_find_left_extents()
683 left, cleft, agbno); in xfs_refcount_find_left_extents()
701 xfs_agblock_t agbno, in xfs_refcount_find_right_extents() argument
710 error = xfs_refcount_lookup_ge(cur, agbno + aglen, &found_rec); in xfs_refcount_find_right_extents()
724 if (tmp.rc_startblock != agbno + aglen) in xfs_refcount_find_right_extents()
746 if (xfs_refc_next(&tmp) == agbno + aglen) in xfs_refcount_find_right_extents()
757 cright->rc_startblock = max(agbno, xfs_refc_next(&tmp)); in xfs_refcount_find_right_extents()
767 cright->rc_startblock = agbno; in xfs_refcount_find_right_extents()
772 cright, right, agbno + aglen); in xfs_refcount_find_right_extents()
795 xfs_agblock_t *agbno, in xfs_refcount_merge_extents() argument
813 error = xfs_refcount_find_left_extents(cur, &left, &cleft, *agbno, in xfs_refcount_merge_extents()
817 error = xfs_refcount_find_right_extents(cur, &right, &cright, *agbno, in xfs_refcount_merge_extents()
849 agbno, aglen); in xfs_refcount_merge_extents()
916 xfs_agblock_t *agbno, in xfs_refcount_adjust_extents() argument
930 error = xfs_refcount_lookup_ge(cur, *agbno, &found_rec); in xfs_refcount_adjust_extents()
949 if (ext.rc_startblock != *agbno) { in xfs_refcount_adjust_extents()
950 tmp.rc_startblock = *agbno; in xfs_refcount_adjust_extents()
952 ext.rc_startblock - *agbno); in xfs_refcount_adjust_extents()
980 (*agbno) += tmp.rc_blockcount; in xfs_refcount_adjust_extents()
983 error = xfs_refcount_lookup_ge(cur, *agbno, in xfs_refcount_adjust_extents()
1031 (*agbno) += ext.rc_blockcount; in xfs_refcount_adjust_extents()
1046 xfs_agblock_t agbno, in xfs_refcount_adjust() argument
1057 *new_agbno = agbno; in xfs_refcount_adjust()
1061 agbno, aglen); in xfs_refcount_adjust()
1064 agbno, aglen); in xfs_refcount_adjust()
1069 error = xfs_refcount_split_extent(cur, agbno, &shape_changed); in xfs_refcount_adjust()
1075 error = xfs_refcount_split_extent(cur, agbno + aglen, &shape_changed); in xfs_refcount_adjust()
1295 xfs_agblock_t agbno, in xfs_refcount_find_shared() argument
1307 agbno, aglen); in xfs_refcount_find_shared()
1314 error = xfs_refcount_lookup_le(cur, agbno, &have); in xfs_refcount_find_shared()
1334 if (tmp.rc_startblock + tmp.rc_blockcount <= agbno) { 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()
1360 *flen = min(tmp.rc_blockcount, agbno + aglen - *fbno); in xfs_refcount_find_shared()
1365 while (*fbno + *flen < agbno + aglen) { in xfs_refcount_find_shared()
1378 if (tmp.rc_startblock >= agbno + aglen || in xfs_refcount_find_shared()
1381 *flen = min(*flen + tmp.rc_blockcount, agbno + aglen - *fbno); in xfs_refcount_find_shared()
1450 xfs_agblock_t agbno, in xfs_refcount_adjust_cow_extents() argument
1462 error = xfs_refcount_lookup_ge(cur, agbno, &found_rec); in xfs_refcount_adjust_cow_extents()
1479 agbno + aglen > ext.rc_startblock)) { in xfs_refcount_adjust_cow_extents()
1484 tmp.rc_startblock = agbno; in xfs_refcount_adjust_cow_extents()
1501 if (XFS_IS_CORRUPT(cur->bc_mp, ext.rc_startblock != agbno)) { in xfs_refcount_adjust_cow_extents()
1542 xfs_agblock_t agbno, in xfs_refcount_adjust_cow() argument
1549 agbno += XFS_REFC_COW_START; in xfs_refcount_adjust_cow()
1554 error = xfs_refcount_split_extent(cur, agbno, &shape_changed); in xfs_refcount_adjust_cow()
1558 error = xfs_refcount_split_extent(cur, agbno + aglen, &shape_changed); in xfs_refcount_adjust_cow()
1565 error = xfs_refcount_merge_extents(cur, &agbno, &aglen, adj, in xfs_refcount_adjust_cow()
1571 error = xfs_refcount_adjust_cow_extents(cur, agbno, aglen, adj); in xfs_refcount_adjust_cow()
1589 xfs_agblock_t agbno, in __xfs_refcount_cow_alloc() argument
1593 agbno, aglen); in __xfs_refcount_cow_alloc()
1596 return xfs_refcount_adjust_cow(rcur, agbno, aglen, in __xfs_refcount_cow_alloc()
1606 xfs_agblock_t agbno, in __xfs_refcount_cow_free() argument
1610 agbno, aglen); in __xfs_refcount_cow_free()
1613 return xfs_refcount_adjust_cow(rcur, agbno, aglen, in __xfs_refcount_cow_free()
1694 xfs_agblock_t agbno; in xfs_refcount_recover_cow_leftovers() local
1744 agbno = rr->rr_rrec.rc_startblock - XFS_REFC_COW_START; in xfs_refcount_recover_cow_leftovers()
1745 fsb = XFS_AGB_TO_FSB(mp, agno, agbno); in xfs_refcount_recover_cow_leftovers()