Lines Matching refs:cur
48 struct xfs_btree_cur *cur, in xfs_refcount_lookup_le() argument
53 trace_xfs_refcount_lookup(cur->bc_mp, cur->bc_ag.pag->pag_agno, in xfs_refcount_lookup_le()
56 cur->bc_rec.rc.rc_startblock = bno; in xfs_refcount_lookup_le()
57 cur->bc_rec.rc.rc_blockcount = 0; in xfs_refcount_lookup_le()
58 cur->bc_rec.rc.rc_domain = domain; in xfs_refcount_lookup_le()
59 return xfs_btree_lookup(cur, XFS_LOOKUP_LE, stat); in xfs_refcount_lookup_le()
68 struct xfs_btree_cur *cur, in xfs_refcount_lookup_ge() argument
73 trace_xfs_refcount_lookup(cur->bc_mp, cur->bc_ag.pag->pag_agno, in xfs_refcount_lookup_ge()
76 cur->bc_rec.rc.rc_startblock = bno; in xfs_refcount_lookup_ge()
77 cur->bc_rec.rc.rc_blockcount = 0; in xfs_refcount_lookup_ge()
78 cur->bc_rec.rc.rc_domain = domain; in xfs_refcount_lookup_ge()
79 return xfs_btree_lookup(cur, XFS_LOOKUP_GE, stat); in xfs_refcount_lookup_ge()
88 struct xfs_btree_cur *cur, in xfs_refcount_lookup_eq() argument
93 trace_xfs_refcount_lookup(cur->bc_mp, cur->bc_ag.pag->pag_agno, in xfs_refcount_lookup_eq()
96 cur->bc_rec.rc.rc_startblock = bno; in xfs_refcount_lookup_eq()
97 cur->bc_rec.rc.rc_blockcount = 0; in xfs_refcount_lookup_eq()
98 cur->bc_rec.rc.rc_domain = domain; in xfs_refcount_lookup_eq()
99 return xfs_btree_lookup(cur, XFS_LOOKUP_EQ, stat); in xfs_refcount_lookup_eq()
126 struct xfs_btree_cur *cur, in xfs_refcount_check_irec() argument
129 struct xfs_perag *pag = cur->bc_ag.pag; in xfs_refcount_check_irec()
149 struct xfs_btree_cur *cur, in xfs_refcount_complain_bad_rec() argument
153 struct xfs_mount *mp = cur->bc_mp; in xfs_refcount_complain_bad_rec()
157 cur->bc_ag.pag->pag_agno, fa); in xfs_refcount_complain_bad_rec()
169 struct xfs_btree_cur *cur, in xfs_refcount_get_rec() argument
177 error = xfs_btree_get_rec(cur, &rec, stat); in xfs_refcount_get_rec()
182 fa = xfs_refcount_check_irec(cur, irec); in xfs_refcount_get_rec()
184 return xfs_refcount_complain_bad_rec(cur, fa, irec); in xfs_refcount_get_rec()
186 trace_xfs_refcount_get(cur->bc_mp, cur->bc_ag.pag->pag_agno, irec); in xfs_refcount_get_rec()
197 struct xfs_btree_cur *cur, in xfs_refcount_update() argument
204 trace_xfs_refcount_update(cur->bc_mp, cur->bc_ag.pag->pag_agno, irec); in xfs_refcount_update()
212 error = xfs_btree_update(cur, &rec); in xfs_refcount_update()
214 trace_xfs_refcount_update_error(cur->bc_mp, in xfs_refcount_update()
215 cur->bc_ag.pag->pag_agno, error, _RET_IP_); in xfs_refcount_update()
226 struct xfs_btree_cur *cur, in xfs_refcount_insert() argument
232 trace_xfs_refcount_insert(cur->bc_mp, cur->bc_ag.pag->pag_agno, irec); in xfs_refcount_insert()
234 cur->bc_rec.rc.rc_startblock = irec->rc_startblock; in xfs_refcount_insert()
235 cur->bc_rec.rc.rc_blockcount = irec->rc_blockcount; in xfs_refcount_insert()
236 cur->bc_rec.rc.rc_refcount = irec->rc_refcount; in xfs_refcount_insert()
237 cur->bc_rec.rc.rc_domain = irec->rc_domain; in xfs_refcount_insert()
239 error = xfs_btree_insert(cur, i); in xfs_refcount_insert()
242 if (XFS_IS_CORRUPT(cur->bc_mp, *i != 1)) { in xfs_refcount_insert()
249 trace_xfs_refcount_insert_error(cur->bc_mp, in xfs_refcount_insert()
250 cur->bc_ag.pag->pag_agno, error, _RET_IP_); in xfs_refcount_insert()
262 struct xfs_btree_cur *cur, in xfs_refcount_delete() argument
269 error = xfs_refcount_get_rec(cur, &irec, &found_rec); in xfs_refcount_delete()
272 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_delete()
276 trace_xfs_refcount_delete(cur->bc_mp, cur->bc_ag.pag->pag_agno, &irec); in xfs_refcount_delete()
277 error = xfs_btree_delete(cur, i); in xfs_refcount_delete()
278 if (XFS_IS_CORRUPT(cur->bc_mp, *i != 1)) { in xfs_refcount_delete()
284 error = xfs_refcount_lookup_ge(cur, irec.rc_domain, irec.rc_startblock, in xfs_refcount_delete()
288 trace_xfs_refcount_delete_error(cur->bc_mp, in xfs_refcount_delete()
289 cur->bc_ag.pag->pag_agno, error, _RET_IP_); in xfs_refcount_delete()
383 struct xfs_btree_cur *cur, in xfs_refcount_split_extent() argument
393 error = xfs_refcount_lookup_le(cur, domain, agbno, &found_rec); in xfs_refcount_split_extent()
399 error = xfs_refcount_get_rec(cur, &rcext, &found_rec); in xfs_refcount_split_extent()
402 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_split_extent()
412 trace_xfs_refcount_split_extent(cur->bc_mp, cur->bc_ag.pag->pag_agno, in xfs_refcount_split_extent()
419 error = xfs_refcount_update(cur, &tmp); in xfs_refcount_split_extent()
426 error = xfs_refcount_insert(cur, &tmp, &found_rec); in xfs_refcount_split_extent()
429 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_split_extent()
436 trace_xfs_refcount_split_extent_error(cur->bc_mp, in xfs_refcount_split_extent()
437 cur->bc_ag.pag->pag_agno, error, _RET_IP_); in xfs_refcount_split_extent()
446 struct xfs_btree_cur *cur, in xfs_refcount_merge_center_extents() argument
456 trace_xfs_refcount_merge_center_extents(cur->bc_mp, in xfs_refcount_merge_center_extents()
457 cur->bc_ag.pag->pag_agno, left, center, right); in xfs_refcount_merge_center_extents()
470 error = xfs_refcount_lookup_ge(cur, center->rc_domain, in xfs_refcount_merge_center_extents()
474 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_merge_center_extents()
479 error = xfs_refcount_delete(cur, &found_rec); in xfs_refcount_merge_center_extents()
482 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_merge_center_extents()
488 error = xfs_refcount_delete(cur, &found_rec); in xfs_refcount_merge_center_extents()
491 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_merge_center_extents()
498 error = xfs_refcount_lookup_le(cur, left->rc_domain, in xfs_refcount_merge_center_extents()
502 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_merge_center_extents()
508 error = xfs_refcount_update(cur, left); in xfs_refcount_merge_center_extents()
516 trace_xfs_refcount_merge_center_extents_error(cur->bc_mp, in xfs_refcount_merge_center_extents()
517 cur->bc_ag.pag->pag_agno, error, _RET_IP_); in xfs_refcount_merge_center_extents()
526 struct xfs_btree_cur *cur, in xfs_refcount_merge_left_extent() argument
535 trace_xfs_refcount_merge_left_extent(cur->bc_mp, in xfs_refcount_merge_left_extent()
536 cur->bc_ag.pag->pag_agno, left, cleft); in xfs_refcount_merge_left_extent()
542 error = xfs_refcount_lookup_le(cur, cleft->rc_domain, in xfs_refcount_merge_left_extent()
546 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_merge_left_extent()
551 error = xfs_refcount_delete(cur, &found_rec); in xfs_refcount_merge_left_extent()
554 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_merge_left_extent()
561 error = xfs_refcount_lookup_le(cur, left->rc_domain, in xfs_refcount_merge_left_extent()
565 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_merge_left_extent()
571 error = xfs_refcount_update(cur, left); in xfs_refcount_merge_left_extent()
580 trace_xfs_refcount_merge_left_extent_error(cur->bc_mp, in xfs_refcount_merge_left_extent()
581 cur->bc_ag.pag->pag_agno, error, _RET_IP_); in xfs_refcount_merge_left_extent()
590 struct xfs_btree_cur *cur, in xfs_refcount_merge_right_extent() argument
598 trace_xfs_refcount_merge_right_extent(cur->bc_mp, in xfs_refcount_merge_right_extent()
599 cur->bc_ag.pag->pag_agno, cright, right); in xfs_refcount_merge_right_extent()
608 error = xfs_refcount_lookup_le(cur, cright->rc_domain, in xfs_refcount_merge_right_extent()
612 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_merge_right_extent()
617 error = xfs_refcount_delete(cur, &found_rec); in xfs_refcount_merge_right_extent()
620 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_merge_right_extent()
627 error = xfs_refcount_lookup_le(cur, right->rc_domain, in xfs_refcount_merge_right_extent()
631 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_merge_right_extent()
638 error = xfs_refcount_update(cur, right); in xfs_refcount_merge_right_extent()
646 trace_xfs_refcount_merge_right_extent_error(cur->bc_mp, in xfs_refcount_merge_right_extent()
647 cur->bc_ag.pag->pag_agno, error, _RET_IP_); in xfs_refcount_merge_right_extent()
657 struct xfs_btree_cur *cur, in xfs_refcount_find_left_extents() argument
669 error = xfs_refcount_lookup_le(cur, domain, agbno - 1, &found_rec); in xfs_refcount_find_left_extents()
675 error = xfs_refcount_get_rec(cur, &tmp, &found_rec); in xfs_refcount_find_left_extents()
678 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_find_left_extents()
690 error = xfs_btree_increment(cur, 0, &found_rec); in xfs_refcount_find_left_extents()
694 error = xfs_refcount_get_rec(cur, &tmp, &found_rec); in xfs_refcount_find_left_extents()
697 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_find_left_extents()
734 trace_xfs_refcount_find_left_extent(cur->bc_mp, cur->bc_ag.pag->pag_agno, in xfs_refcount_find_left_extents()
739 trace_xfs_refcount_find_left_extent_error(cur->bc_mp, in xfs_refcount_find_left_extents()
740 cur->bc_ag.pag->pag_agno, error, _RET_IP_); in xfs_refcount_find_left_extents()
750 struct xfs_btree_cur *cur, in xfs_refcount_find_right_extents() argument
762 error = xfs_refcount_lookup_ge(cur, domain, agbno + aglen, &found_rec); in xfs_refcount_find_right_extents()
768 error = xfs_refcount_get_rec(cur, &tmp, &found_rec); in xfs_refcount_find_right_extents()
771 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_find_right_extents()
783 error = xfs_btree_decrement(cur, 0, &found_rec); in xfs_refcount_find_right_extents()
787 error = xfs_refcount_get_rec(cur, &tmp, &found_rec); in xfs_refcount_find_right_extents()
790 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_find_right_extents()
827 trace_xfs_refcount_find_right_extent(cur->bc_mp, cur->bc_ag.pag->pag_agno, in xfs_refcount_find_right_extents()
832 trace_xfs_refcount_find_right_extent_error(cur->bc_mp, in xfs_refcount_find_right_extents()
833 cur->bc_ag.pag->pag_agno, error, _RET_IP_); in xfs_refcount_find_right_extents()
975 struct xfs_btree_cur *cur, in xfs_refcount_merge_extents() argument
994 error = xfs_refcount_find_left_extents(cur, &left, &cleft, domain, in xfs_refcount_merge_extents()
998 error = xfs_refcount_find_right_extents(cur, &right, &cright, domain, in xfs_refcount_merge_extents()
1014 return xfs_refcount_merge_center_extents(cur, &left, &cleft, in xfs_refcount_merge_extents()
1021 error = xfs_refcount_merge_left_extent(cur, &left, &cleft, in xfs_refcount_merge_extents()
1037 return xfs_refcount_merge_right_extent(cur, &right, &cright, in xfs_refcount_merge_extents()
1052 struct xfs_btree_cur *cur) in xfs_refcount_still_have_space() argument
1060 overhead = xfs_allocfree_block_count(cur->bc_mp, in xfs_refcount_still_have_space()
1061 cur->bc_ag.refc.shape_changes); in xfs_refcount_still_have_space()
1062 overhead += cur->bc_mp->m_refc_maxlevels; in xfs_refcount_still_have_space()
1063 overhead *= cur->bc_mp->m_sb.sb_blocksize; in xfs_refcount_still_have_space()
1069 if (cur->bc_ag.refc.nr_ops > 2 && in xfs_refcount_still_have_space()
1070 XFS_TEST_ERROR(false, cur->bc_mp, in xfs_refcount_still_have_space()
1074 if (cur->bc_ag.refc.nr_ops == 0) in xfs_refcount_still_have_space()
1076 else if (overhead > cur->bc_tp->t_log_res) in xfs_refcount_still_have_space()
1078 return cur->bc_tp->t_log_res - overhead > in xfs_refcount_still_have_space()
1079 cur->bc_ag.refc.nr_ops * XFS_REFCOUNT_ITEM_OVERHEAD; in xfs_refcount_still_have_space()
1090 struct xfs_btree_cur *cur, in xfs_refcount_adjust_extents() argument
1104 error = xfs_refcount_lookup_ge(cur, XFS_REFC_DOMAIN_SHARED, *agbno, in xfs_refcount_adjust_extents()
1109 while (*aglen > 0 && xfs_refcount_still_have_space(cur)) { in xfs_refcount_adjust_extents()
1110 error = xfs_refcount_get_rec(cur, &ext, &found_rec); in xfs_refcount_adjust_extents()
1114 ext.rc_startblock = cur->bc_mp->m_sb.sb_agblocks; in xfs_refcount_adjust_extents()
1132 trace_xfs_refcount_modify_extent(cur->bc_mp, in xfs_refcount_adjust_extents()
1133 cur->bc_ag.pag->pag_agno, &tmp); in xfs_refcount_adjust_extents()
1139 cur->bc_ag.refc.nr_ops++; in xfs_refcount_adjust_extents()
1141 error = xfs_refcount_insert(cur, &tmp, in xfs_refcount_adjust_extents()
1145 if (XFS_IS_CORRUPT(cur->bc_mp, in xfs_refcount_adjust_extents()
1151 fsbno = XFS_AGB_TO_FSB(cur->bc_mp, in xfs_refcount_adjust_extents()
1152 cur->bc_ag.pag->pag_agno, in xfs_refcount_adjust_extents()
1154 error = xfs_free_extent_later(cur->bc_tp, fsbno, in xfs_refcount_adjust_extents()
1165 if (*aglen == 0 || !xfs_refcount_still_have_space(cur)) in xfs_refcount_adjust_extents()
1169 error = xfs_refcount_lookup_ge(cur, in xfs_refcount_adjust_extents()
1183 if (XFS_IS_CORRUPT(cur->bc_mp, ext.rc_blockcount == 0) || in xfs_refcount_adjust_extents()
1184 XFS_IS_CORRUPT(cur->bc_mp, ext.rc_blockcount > *aglen)) { in xfs_refcount_adjust_extents()
1196 trace_xfs_refcount_modify_extent(cur->bc_mp, in xfs_refcount_adjust_extents()
1197 cur->bc_ag.pag->pag_agno, &ext); in xfs_refcount_adjust_extents()
1198 cur->bc_ag.refc.nr_ops++; in xfs_refcount_adjust_extents()
1200 error = xfs_refcount_update(cur, &ext); in xfs_refcount_adjust_extents()
1204 error = xfs_refcount_delete(cur, &found_rec); in xfs_refcount_adjust_extents()
1207 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_adjust_extents()
1213 fsbno = XFS_AGB_TO_FSB(cur->bc_mp, in xfs_refcount_adjust_extents()
1214 cur->bc_ag.pag->pag_agno, in xfs_refcount_adjust_extents()
1216 error = xfs_free_extent_later(cur->bc_tp, fsbno, in xfs_refcount_adjust_extents()
1224 error = xfs_btree_increment(cur, 0, &found_rec); in xfs_refcount_adjust_extents()
1235 trace_xfs_refcount_modify_extent_error(cur->bc_mp, in xfs_refcount_adjust_extents()
1236 cur->bc_ag.pag->pag_agno, error, _RET_IP_); in xfs_refcount_adjust_extents()
1243 struct xfs_btree_cur *cur, in xfs_refcount_adjust() argument
1253 trace_xfs_refcount_increase(cur->bc_mp, in xfs_refcount_adjust()
1254 cur->bc_ag.pag->pag_agno, *agbno, *aglen); in xfs_refcount_adjust()
1256 trace_xfs_refcount_decrease(cur->bc_mp, in xfs_refcount_adjust()
1257 cur->bc_ag.pag->pag_agno, *agbno, *aglen); in xfs_refcount_adjust()
1262 error = xfs_refcount_split_extent(cur, XFS_REFC_DOMAIN_SHARED, in xfs_refcount_adjust()
1269 error = xfs_refcount_split_extent(cur, XFS_REFC_DOMAIN_SHARED, in xfs_refcount_adjust()
1279 error = xfs_refcount_merge_extents(cur, XFS_REFC_DOMAIN_SHARED, in xfs_refcount_adjust()
1286 cur->bc_ag.refc.shape_changes++; in xfs_refcount_adjust()
1289 error = xfs_refcount_adjust_extents(cur, agbno, aglen, adj); in xfs_refcount_adjust()
1296 trace_xfs_refcount_adjust_error(cur->bc_mp, cur->bc_ag.pag->pag_agno, in xfs_refcount_adjust()
1324 struct xfs_btree_cur *cur, in xfs_refcount_continue_op() argument
1328 struct xfs_mount *mp = cur->bc_mp; in xfs_refcount_continue_op()
1329 struct xfs_perag *pag = cur->bc_ag.pag; in xfs_refcount_continue_op()
1504 struct xfs_btree_cur *cur, in xfs_refcount_find_shared() argument
1516 trace_xfs_refcount_find_shared(cur->bc_mp, cur->bc_ag.pag->pag_agno, in xfs_refcount_find_shared()
1524 error = xfs_refcount_lookup_le(cur, XFS_REFC_DOMAIN_SHARED, agbno, in xfs_refcount_find_shared()
1530 error = xfs_btree_increment(cur, 0, &have); in xfs_refcount_find_shared()
1536 error = xfs_refcount_get_rec(cur, &tmp, &i); in xfs_refcount_find_shared()
1539 if (XFS_IS_CORRUPT(cur->bc_mp, i != 1)) { in xfs_refcount_find_shared()
1548 error = xfs_btree_increment(cur, 0, &have); in xfs_refcount_find_shared()
1553 error = xfs_refcount_get_rec(cur, &tmp, &i); in xfs_refcount_find_shared()
1556 if (XFS_IS_CORRUPT(cur->bc_mp, i != 1)) { in xfs_refcount_find_shared()
1581 error = xfs_btree_increment(cur, 0, &have); in xfs_refcount_find_shared()
1586 error = xfs_refcount_get_rec(cur, &tmp, &i); in xfs_refcount_find_shared()
1589 if (XFS_IS_CORRUPT(cur->bc_mp, i != 1)) { in xfs_refcount_find_shared()
1601 trace_xfs_refcount_find_shared_result(cur->bc_mp, in xfs_refcount_find_shared()
1602 cur->bc_ag.pag->pag_agno, *fbno, *flen); in xfs_refcount_find_shared()
1606 trace_xfs_refcount_find_shared_error(cur->bc_mp, in xfs_refcount_find_shared()
1607 cur->bc_ag.pag->pag_agno, error, _RET_IP_); in xfs_refcount_find_shared()
1665 struct xfs_btree_cur *cur, in xfs_refcount_adjust_cow_extents() argument
1678 error = xfs_refcount_lookup_ge(cur, XFS_REFC_DOMAIN_COW, agbno, in xfs_refcount_adjust_cow_extents()
1682 error = xfs_refcount_get_rec(cur, &ext, &found_rec); in xfs_refcount_adjust_cow_extents()
1685 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec && in xfs_refcount_adjust_cow_extents()
1691 ext.rc_startblock = cur->bc_mp->m_sb.sb_agblocks; in xfs_refcount_adjust_cow_extents()
1700 if (XFS_IS_CORRUPT(cur->bc_mp, in xfs_refcount_adjust_cow_extents()
1711 trace_xfs_refcount_modify_extent(cur->bc_mp, in xfs_refcount_adjust_cow_extents()
1712 cur->bc_ag.pag->pag_agno, &tmp); in xfs_refcount_adjust_cow_extents()
1714 error = xfs_refcount_insert(cur, &tmp, in xfs_refcount_adjust_cow_extents()
1718 if (XFS_IS_CORRUPT(cur->bc_mp, found_tmp != 1)) { in xfs_refcount_adjust_cow_extents()
1725 if (XFS_IS_CORRUPT(cur->bc_mp, ext.rc_startblock != agbno)) { in xfs_refcount_adjust_cow_extents()
1729 if (XFS_IS_CORRUPT(cur->bc_mp, ext.rc_blockcount != aglen)) { in xfs_refcount_adjust_cow_extents()
1733 if (XFS_IS_CORRUPT(cur->bc_mp, ext.rc_refcount != 1)) { in xfs_refcount_adjust_cow_extents()
1739 trace_xfs_refcount_modify_extent(cur->bc_mp, in xfs_refcount_adjust_cow_extents()
1740 cur->bc_ag.pag->pag_agno, &ext); in xfs_refcount_adjust_cow_extents()
1741 error = xfs_refcount_delete(cur, &found_rec); in xfs_refcount_adjust_cow_extents()
1744 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_adjust_cow_extents()
1755 trace_xfs_refcount_modify_extent_error(cur->bc_mp, in xfs_refcount_adjust_cow_extents()
1756 cur->bc_ag.pag->pag_agno, error, _RET_IP_); in xfs_refcount_adjust_cow_extents()
1765 struct xfs_btree_cur *cur, in xfs_refcount_adjust_cow() argument
1776 error = xfs_refcount_split_extent(cur, XFS_REFC_DOMAIN_COW, in xfs_refcount_adjust_cow()
1781 error = xfs_refcount_split_extent(cur, XFS_REFC_DOMAIN_COW, in xfs_refcount_adjust_cow()
1789 error = xfs_refcount_merge_extents(cur, XFS_REFC_DOMAIN_COW, &agbno, in xfs_refcount_adjust_cow()
1795 error = xfs_refcount_adjust_cow_extents(cur, agbno, aglen, adj); in xfs_refcount_adjust_cow()
1802 trace_xfs_refcount_adjust_cow_error(cur->bc_mp, cur->bc_ag.pag->pag_agno, in xfs_refcount_adjust_cow()
1886 struct xfs_btree_cur *cur, in xfs_refcount_recover_extent() argument
1893 if (XFS_IS_CORRUPT(cur->bc_mp, in xfs_refcount_recover_extent()
1902 if (xfs_refcount_check_irec(cur, &rr->rr_rrec) != NULL || in xfs_refcount_recover_extent()
1903 XFS_IS_CORRUPT(cur->bc_mp, in xfs_refcount_recover_extent()
1920 struct xfs_btree_cur *cur; in xfs_refcount_recover_cow_leftovers() local
1958 cur = xfs_refcountbt_init_cursor(mp, tp, agbp, pag); in xfs_refcount_recover_cow_leftovers()
1961 error = xfs_btree_query_range(cur, &low, &high, in xfs_refcount_recover_cow_leftovers()
1963 xfs_btree_del_cursor(cur, error); in xfs_refcount_recover_cow_leftovers()
2018 struct xfs_btree_cur *cur, in xfs_refcount_has_records() argument
2033 return xfs_btree_has_records(cur, &low, &high, NULL, outcome); in xfs_refcount_has_records()