Lines Matching refs:aglen
35 xfs_agblock_t agbno, xfs_extlen_t aglen);
37 xfs_agblock_t agbno, xfs_extlen_t aglen);
408 xfs_extlen_t *aglen) in xfs_refcount_merge_center_extents() argument
466 *aglen = 0; in xfs_refcount_merge_center_extents()
484 xfs_extlen_t *aglen) in xfs_refcount_merge_left_extent() argument
528 *aglen -= cleft->rc_blockcount; in xfs_refcount_merge_left_extent()
545 xfs_extlen_t *aglen) in xfs_refcount_merge_right_extent() argument
592 *aglen -= cright->rc_blockcount; in xfs_refcount_merge_right_extent()
613 xfs_extlen_t aglen, in xfs_refcount_find_left_extents() argument
669 cleft->rc_blockcount = min(aglen, in xfs_refcount_find_left_extents()
679 cleft->rc_blockcount = aglen; in xfs_refcount_find_left_extents()
702 xfs_extlen_t aglen, 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()
768 cright->rc_blockcount = aglen; in xfs_refcount_find_right_extents()
772 cright, right, agbno + aglen); in xfs_refcount_find_right_extents()
796 xfs_extlen_t *aglen, in xfs_refcount_merge_extents() argument
814 *aglen, flags); in xfs_refcount_merge_extents()
818 *aglen, flags); in xfs_refcount_merge_extents()
839 &right, ulen, aglen); in xfs_refcount_merge_extents()
849 agbno, aglen); in xfs_refcount_merge_extents()
868 aglen); in xfs_refcount_merge_extents()
917 xfs_extlen_t *aglen, in xfs_refcount_adjust_extents() argument
927 if (*aglen == 0) in xfs_refcount_adjust_extents()
934 while (*aglen > 0 && xfs_refcount_still_have_space(cur)) { in xfs_refcount_adjust_extents()
951 tmp.rc_blockcount = min(*aglen, in xfs_refcount_adjust_extents()
981 (*aglen) -= tmp.rc_blockcount; in xfs_refcount_adjust_extents()
990 if (*aglen == 0 || !xfs_refcount_still_have_space(cur)) in xfs_refcount_adjust_extents()
1032 (*aglen) -= ext.rc_blockcount; in xfs_refcount_adjust_extents()
1047 xfs_extlen_t aglen, in xfs_refcount_adjust() argument
1058 *new_aglen = aglen; in xfs_refcount_adjust()
1061 agbno, aglen); in xfs_refcount_adjust()
1064 agbno, aglen); in xfs_refcount_adjust()
1075 error = xfs_refcount_split_extent(cur, agbno + aglen, &shape_changed); in xfs_refcount_adjust()
1296 xfs_extlen_t aglen, in xfs_refcount_find_shared() argument
1307 agbno, aglen); in xfs_refcount_find_shared()
1350 if (tmp.rc_startblock >= agbno + aglen) 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()
1451 xfs_extlen_t aglen, in xfs_refcount_adjust_cow_extents() argument
1458 if (aglen == 0) in xfs_refcount_adjust_cow_extents()
1479 agbno + aglen > ext.rc_startblock)) { in xfs_refcount_adjust_cow_extents()
1485 tmp.rc_blockcount = aglen; in xfs_refcount_adjust_cow_extents()
1505 if (XFS_IS_CORRUPT(cur->bc_mp, ext.rc_blockcount != aglen)) { in xfs_refcount_adjust_cow_extents()
1543 xfs_extlen_t aglen, in xfs_refcount_adjust_cow() argument
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()
1590 xfs_extlen_t aglen) 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()
1607 xfs_extlen_t aglen) 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()