Lines Matching refs:aglen
38 xfs_agblock_t agbno, xfs_extlen_t aglen);
40 xfs_agblock_t agbno, xfs_extlen_t aglen);
429 xfs_extlen_t *aglen) in xfs_refcount_merge_center_extents() argument
490 *aglen = 0; in xfs_refcount_merge_center_extents()
508 xfs_extlen_t *aglen) in xfs_refcount_merge_left_extent() argument
554 *aglen -= cleft->rc_blockcount; in xfs_refcount_merge_left_extent()
571 xfs_extlen_t *aglen) in xfs_refcount_merge_right_extent() argument
620 *aglen -= cright->rc_blockcount; in xfs_refcount_merge_right_extent()
640 xfs_extlen_t aglen) in xfs_refcount_find_left_extents() argument
696 cleft->rc_blockcount = min(aglen, in xfs_refcount_find_left_extents()
708 cleft->rc_blockcount = aglen; in xfs_refcount_find_left_extents()
733 xfs_extlen_t aglen) in xfs_refcount_find_right_extents() argument
740 error = xfs_refcount_lookup_ge(cur, domain, agbno + aglen, &found_rec); in xfs_refcount_find_right_extents()
756 if (tmp.rc_startblock != agbno + aglen) in xfs_refcount_find_right_extents()
777 if (xfs_refc_next(&tmp) == agbno + aglen) in xfs_refcount_find_right_extents()
801 cright->rc_blockcount = aglen; in xfs_refcount_find_right_extents()
806 cright, right, agbno + aglen); in xfs_refcount_find_right_extents()
831 xfs_extlen_t *aglen, in xfs_refcount_merge_extents() argument
848 *agbno, *aglen); in xfs_refcount_merge_extents()
852 *agbno, *aglen); in xfs_refcount_merge_extents()
873 &right, ulen, aglen); in xfs_refcount_merge_extents()
883 agbno, aglen); in xfs_refcount_merge_extents()
902 aglen); in xfs_refcount_merge_extents()
956 xfs_extlen_t *aglen, in xfs_refcount_adjust_extents() argument
965 if (*aglen == 0) in xfs_refcount_adjust_extents()
973 while (*aglen > 0 && xfs_refcount_still_have_space(cur)) { in xfs_refcount_adjust_extents()
991 tmp.rc_blockcount = min(*aglen, in xfs_refcount_adjust_extents()
1023 (*aglen) -= tmp.rc_blockcount; in xfs_refcount_adjust_extents()
1026 if (*aglen == 0 || !xfs_refcount_still_have_space(cur)) in xfs_refcount_adjust_extents()
1045 XFS_IS_CORRUPT(cur->bc_mp, ext.rc_blockcount > *aglen)) { in xfs_refcount_adjust_extents()
1088 (*aglen) -= ext.rc_blockcount; in xfs_refcount_adjust_extents()
1103 xfs_extlen_t aglen, in xfs_refcount_adjust() argument
1113 *new_aglen = aglen; in xfs_refcount_adjust()
1116 agbno, aglen); in xfs_refcount_adjust()
1119 agbno, aglen); in xfs_refcount_adjust()
1132 agbno + aglen, &shape_changed); in xfs_refcount_adjust()
1379 xfs_extlen_t aglen, in xfs_refcount_find_shared() argument
1390 agbno, aglen); in xfs_refcount_find_shared()
1438 if (tmp.rc_startblock >= agbno + aglen) in xfs_refcount_find_shared()
1448 *flen = min(tmp.rc_blockcount, agbno + aglen - *fbno); in xfs_refcount_find_shared()
1453 while (*fbno + *flen < agbno + aglen) { in xfs_refcount_find_shared()
1467 tmp.rc_startblock >= agbno + aglen || in xfs_refcount_find_shared()
1470 *flen = min(*flen + tmp.rc_blockcount, agbno + aglen - *fbno); in xfs_refcount_find_shared()
1540 xfs_extlen_t aglen, in xfs_refcount_adjust_cow_extents() argument
1547 if (aglen == 0) in xfs_refcount_adjust_cow_extents()
1574 agbno + aglen > ext.rc_startblock)) { in xfs_refcount_adjust_cow_extents()
1580 tmp.rc_blockcount = aglen; in xfs_refcount_adjust_cow_extents()
1602 if (XFS_IS_CORRUPT(cur->bc_mp, ext.rc_blockcount != aglen)) { in xfs_refcount_adjust_cow_extents()
1640 xfs_extlen_t aglen, in xfs_refcount_adjust_cow() argument
1655 agbno + aglen, &shape_changed); in xfs_refcount_adjust_cow()
1663 &aglen, adj, &shape_changed); in xfs_refcount_adjust_cow()
1668 error = xfs_refcount_adjust_cow_extents(cur, agbno, aglen, adj); in xfs_refcount_adjust_cow()
1687 xfs_extlen_t aglen) in __xfs_refcount_cow_alloc() argument
1690 agbno, aglen); in __xfs_refcount_cow_alloc()
1693 return xfs_refcount_adjust_cow(rcur, agbno, aglen, in __xfs_refcount_cow_alloc()
1704 xfs_extlen_t aglen) in __xfs_refcount_cow_free() argument
1707 agbno, aglen); in __xfs_refcount_cow_free()
1710 return xfs_refcount_adjust_cow(rcur, agbno, aglen, in __xfs_refcount_cow_free()