Lines Matching refs:aglen

37 		xfs_agblock_t agbno, xfs_extlen_t aglen);
39 xfs_agblock_t agbno, xfs_extlen_t aglen);
395 xfs_extlen_t *aglen) in xfs_refcount_merge_center_extents() argument
442 *aglen = 0; in xfs_refcount_merge_center_extents()
460 xfs_extlen_t *aglen) in xfs_refcount_merge_left_extent() argument
497 *aglen -= cleft->rc_blockcount; in xfs_refcount_merge_left_extent()
514 xfs_extlen_t *aglen) in xfs_refcount_merge_right_extent() argument
554 *aglen -= cright->rc_blockcount; in xfs_refcount_merge_right_extent()
575 xfs_extlen_t aglen, in xfs_refcount_find_left_extents() argument
626 cleft->rc_blockcount = min(aglen, in xfs_refcount_find_left_extents()
636 cleft->rc_blockcount = aglen; in xfs_refcount_find_left_extents()
659 xfs_extlen_t aglen, in xfs_refcount_find_right_extents() argument
667 error = xfs_refcount_lookup_ge(cur, agbno + aglen, &found_rec); in xfs_refcount_find_right_extents()
678 if (tmp.rc_startblock != agbno + aglen) in xfs_refcount_find_right_extents()
698 if (xfs_refc_next(&tmp) == agbno + aglen) in xfs_refcount_find_right_extents()
720 cright->rc_blockcount = aglen; in xfs_refcount_find_right_extents()
724 cright, right, agbno + aglen); in xfs_refcount_find_right_extents()
748 xfs_extlen_t *aglen, in xfs_refcount_merge_extents() argument
766 *aglen, flags); in xfs_refcount_merge_extents()
770 *aglen, flags); in xfs_refcount_merge_extents()
791 &right, ulen, aglen); in xfs_refcount_merge_extents()
801 agbno, aglen); in xfs_refcount_merge_extents()
820 aglen); in xfs_refcount_merge_extents()
869 xfs_extlen_t *aglen, in xfs_refcount_adjust_extents() argument
879 if (*aglen == 0) in xfs_refcount_adjust_extents()
886 while (*aglen > 0 && xfs_refcount_still_have_space(cur)) { in xfs_refcount_adjust_extents()
903 tmp.rc_blockcount = min(*aglen, in xfs_refcount_adjust_extents()
930 (*aglen) -= tmp.rc_blockcount; in xfs_refcount_adjust_extents()
939 if (*aglen == 0 || !xfs_refcount_still_have_space(cur)) in xfs_refcount_adjust_extents()
979 (*aglen) -= ext.rc_blockcount; in xfs_refcount_adjust_extents()
994 xfs_extlen_t aglen, in xfs_refcount_adjust() argument
1005 *new_aglen = aglen; in xfs_refcount_adjust()
1008 agbno, aglen); in xfs_refcount_adjust()
1011 agbno, aglen); in xfs_refcount_adjust()
1022 error = xfs_refcount_split_extent(cur, agbno + aglen, &shape_changed); in xfs_refcount_adjust()
1246 xfs_extlen_t aglen, in xfs_refcount_find_shared() argument
1257 agbno, aglen); in xfs_refcount_find_shared()
1294 if (tmp.rc_startblock >= agbno + aglen) in xfs_refcount_find_shared()
1304 *flen = min(tmp.rc_blockcount, agbno + aglen - *fbno); in xfs_refcount_find_shared()
1309 while (*fbno + *flen < agbno + aglen) { in xfs_refcount_find_shared()
1319 if (tmp.rc_startblock >= agbno + aglen || in xfs_refcount_find_shared()
1322 *flen = min(*flen + tmp.rc_blockcount, agbno + aglen - *fbno); in xfs_refcount_find_shared()
1392 xfs_extlen_t aglen, in xfs_refcount_adjust_cow_extents() argument
1399 if (aglen == 0) in xfs_refcount_adjust_cow_extents()
1420 ext.rc_startblock >= agbno + aglen, out_error); in xfs_refcount_adjust_cow_extents()
1423 tmp.rc_blockcount = aglen; in xfs_refcount_adjust_cow_extents()
1440 ext.rc_blockcount == aglen, out_error); in xfs_refcount_adjust_cow_extents()
1471 xfs_extlen_t aglen, in xfs_refcount_adjust_cow() argument
1486 error = xfs_refcount_split_extent(cur, agbno + aglen, &shape_changed); in xfs_refcount_adjust_cow()
1493 error = xfs_refcount_merge_extents(cur, &agbno, &aglen, adj, in xfs_refcount_adjust_cow()
1499 error = xfs_refcount_adjust_cow_extents(cur, agbno, aglen, adj); in xfs_refcount_adjust_cow()
1518 xfs_extlen_t aglen) in __xfs_refcount_cow_alloc() argument
1521 agbno, aglen); in __xfs_refcount_cow_alloc()
1524 return xfs_refcount_adjust_cow(rcur, agbno, aglen, in __xfs_refcount_cow_alloc()
1535 xfs_extlen_t aglen) in __xfs_refcount_cow_free() argument
1538 agbno, aglen); in __xfs_refcount_cow_free()
1541 return xfs_refcount_adjust_cow(rcur, agbno, aglen, in __xfs_refcount_cow_free()