Lines Matching refs:agbno

39 		xfs_agblock_t agbno, xfs_extlen_t aglen);
41 xfs_agblock_t agbno, xfs_extlen_t aglen);
382 * Split a refcount extent that crosses agbno.
388 xfs_agblock_t agbno,
396 error = xfs_refcount_lookup_le(cur, domain, agbno, &found_rec);
412 if (rcext.rc_startblock == agbno || xfs_refc_next(&rcext) <= agbno)
417 &rcext, agbno);
421 tmp.rc_startblock = agbno;
422 tmp.rc_blockcount -= (agbno - rcext.rc_startblock);
429 tmp.rc_blockcount = agbno - rcext.rc_startblock;
538 xfs_agblock_t *agbno,
549 /* If the extent at agbno (cleft) wasn't synthesized, remove it. */
587 *agbno += cleft->rc_blockcount;
616 * If the extent ending at agbno+aglen (cright) wasn't synthesized,
668 * that we've already split any extent crossing agbno.
676 xfs_agblock_t agbno,
684 error = xfs_refcount_lookup_le(cur, domain, agbno - 1, &found_rec);
701 if (xfs_refc_next(&tmp) != agbno)
723 if (tmp.rc_startblock == agbno)
730 * We assume here that the agbno/aglen range was
734 cleft->rc_startblock = agbno;
736 tmp.rc_startblock - agbno);
746 cleft->rc_startblock = agbno;
752 left, cleft, agbno);
763 * assumes that we've already split any extents crossing agbno + aglen.
771 xfs_agblock_t agbno,
779 error = xfs_refcount_lookup_ge(cur, domain, agbno + aglen, &found_rec);
796 if (tmp.rc_startblock != agbno + aglen)
818 if (xfs_refc_next(&tmp) == agbno + aglen)
825 * We assume here that the agbno/aglen range was
829 cright->rc_startblock = max(agbno, xfs_refc_next(&tmp));
841 cright->rc_startblock = agbno;
847 cright, right, agbno + aglen);
996 xfs_agblock_t *agbno,
1009 * Find the extent just below agbno [left], just above agbno [cleft],
1010 * just below (agbno + aglen) [cright], and just above (agbno + aglen)
1014 *agbno, *aglen);
1018 *agbno, *aglen);
1041 agbno, aglen);
1104 * extents; and updated agbno/aglen to reflect the merges. Therefore,
1105 * all we have to do is update the extents inside [agbno, agbno + aglen].
1110 xfs_agblock_t *agbno,
1123 error = xfs_refcount_lookup_ge(cur, XFS_REFC_DOMAIN_SHARED, *agbno,
1144 if (ext.rc_startblock != *agbno) {
1145 tmp.rc_startblock = *agbno;
1147 ext.rc_startblock - *agbno);
1181 (*agbno) += tmp.rc_blockcount;
1190 XFS_REFC_DOMAIN_SHARED, *agbno,
1197 * A previous step trimmed agbno/aglen such that the end of the
1251 (*agbno) += ext.rc_blockcount;
1266 xfs_agblock_t *agbno,
1276 cur->bc_ag.pag->pag_agno, *agbno, *aglen);
1279 cur->bc_ag.pag->pag_agno, *agbno, *aglen);
1285 *agbno, &shape_changed);
1292 *agbno + *aglen, &shape_changed);
1302 agbno, aglen, adj, &shape_changed);
1311 error = xfs_refcount_adjust_extents(cur, agbno, aglen, adj);
1529 xfs_agblock_t agbno,
1541 agbno, aglen);
1548 error = xfs_refcount_lookup_le(cur, XFS_REFC_DOMAIN_SHARED, agbno,
1572 if (tmp.rc_startblock + tmp.rc_blockcount <= agbno) {
1591 if (tmp.rc_startblock >= agbno + aglen)
1595 if (tmp.rc_startblock < agbno) {
1596 tmp.rc_blockcount -= (agbno - tmp.rc_startblock);
1597 tmp.rc_startblock = agbno;
1601 *flen = min(tmp.rc_blockcount, agbno + aglen - *fbno);
1606 while (*fbno + *flen < agbno + aglen) {
1621 tmp.rc_startblock >= agbno + aglen ||
1624 *flen = min(*flen + tmp.rc_blockcount, agbno + aglen - *fbno);
1693 xfs_agblock_t agbno,
1705 error = xfs_refcount_lookup_ge(cur, XFS_REFC_DOMAIN_COW, agbno,
1729 agbno + aglen > ext.rc_startblock)) {
1735 tmp.rc_startblock = agbno;
1755 if (XFS_IS_CORRUPT(cur->bc_mp, ext.rc_startblock != agbno)) {
1800 xfs_agblock_t agbno,
1811 agbno, &shape_changed);
1816 agbno + aglen, &shape_changed);
1823 error = xfs_refcount_merge_extents(cur, XFS_REFC_DOMAIN_COW, &agbno,
1829 error = xfs_refcount_adjust_cow_extents(cur, agbno, aglen, adj);
1847 xfs_agblock_t agbno,
1851 agbno, aglen);
1854 return xfs_refcount_adjust_cow(rcur, agbno, aglen,
1864 xfs_agblock_t agbno,
1868 agbno, aglen);
1871 return xfs_refcount_adjust_cow(rcur, agbno, aglen,