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()
128 struct xfs_btree_cur *cur, in xfs_refcount_get_rec() argument
132 struct xfs_mount *mp = cur->bc_mp; in xfs_refcount_get_rec()
133 struct xfs_perag *pag = cur->bc_ag.pag; in xfs_refcount_get_rec()
137 error = xfs_btree_get_rec(cur, &rec, stat); in xfs_refcount_get_rec()
155 trace_xfs_refcount_get(cur->bc_mp, pag->pag_agno, irec); in xfs_refcount_get_rec()
175 struct xfs_btree_cur *cur, in xfs_refcount_update() argument
182 trace_xfs_refcount_update(cur->bc_mp, cur->bc_ag.pag->pag_agno, irec); in xfs_refcount_update()
190 error = xfs_btree_update(cur, &rec); in xfs_refcount_update()
192 trace_xfs_refcount_update_error(cur->bc_mp, in xfs_refcount_update()
193 cur->bc_ag.pag->pag_agno, error, _RET_IP_); in xfs_refcount_update()
204 struct xfs_btree_cur *cur, in xfs_refcount_insert() argument
210 trace_xfs_refcount_insert(cur->bc_mp, cur->bc_ag.pag->pag_agno, irec); in xfs_refcount_insert()
212 cur->bc_rec.rc.rc_startblock = irec->rc_startblock; in xfs_refcount_insert()
213 cur->bc_rec.rc.rc_blockcount = irec->rc_blockcount; in xfs_refcount_insert()
214 cur->bc_rec.rc.rc_refcount = irec->rc_refcount; in xfs_refcount_insert()
215 cur->bc_rec.rc.rc_domain = irec->rc_domain; in xfs_refcount_insert()
217 error = xfs_btree_insert(cur, i); in xfs_refcount_insert()
220 if (XFS_IS_CORRUPT(cur->bc_mp, *i != 1)) { in xfs_refcount_insert()
227 trace_xfs_refcount_insert_error(cur->bc_mp, in xfs_refcount_insert()
228 cur->bc_ag.pag->pag_agno, error, _RET_IP_); in xfs_refcount_insert()
240 struct xfs_btree_cur *cur, in xfs_refcount_delete() argument
247 error = xfs_refcount_get_rec(cur, &irec, &found_rec); in xfs_refcount_delete()
250 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_delete()
254 trace_xfs_refcount_delete(cur->bc_mp, cur->bc_ag.pag->pag_agno, &irec); in xfs_refcount_delete()
255 error = xfs_btree_delete(cur, i); in xfs_refcount_delete()
256 if (XFS_IS_CORRUPT(cur->bc_mp, *i != 1)) { in xfs_refcount_delete()
262 error = xfs_refcount_lookup_ge(cur, irec.rc_domain, irec.rc_startblock, in xfs_refcount_delete()
266 trace_xfs_refcount_delete_error(cur->bc_mp, in xfs_refcount_delete()
267 cur->bc_ag.pag->pag_agno, error, _RET_IP_); in xfs_refcount_delete()
361 struct xfs_btree_cur *cur, in xfs_refcount_split_extent() argument
371 error = xfs_refcount_lookup_le(cur, domain, agbno, &found_rec); in xfs_refcount_split_extent()
377 error = xfs_refcount_get_rec(cur, &rcext, &found_rec); in xfs_refcount_split_extent()
380 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_split_extent()
390 trace_xfs_refcount_split_extent(cur->bc_mp, cur->bc_ag.pag->pag_agno, in xfs_refcount_split_extent()
397 error = xfs_refcount_update(cur, &tmp); in xfs_refcount_split_extent()
404 error = xfs_refcount_insert(cur, &tmp, &found_rec); in xfs_refcount_split_extent()
407 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_split_extent()
414 trace_xfs_refcount_split_extent_error(cur->bc_mp, in xfs_refcount_split_extent()
415 cur->bc_ag.pag->pag_agno, error, _RET_IP_); in xfs_refcount_split_extent()
424 struct xfs_btree_cur *cur, in xfs_refcount_merge_center_extents() argument
434 trace_xfs_refcount_merge_center_extents(cur->bc_mp, in xfs_refcount_merge_center_extents()
435 cur->bc_ag.pag->pag_agno, left, center, right); in xfs_refcount_merge_center_extents()
448 error = xfs_refcount_lookup_ge(cur, center->rc_domain, in xfs_refcount_merge_center_extents()
452 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_merge_center_extents()
457 error = xfs_refcount_delete(cur, &found_rec); in xfs_refcount_merge_center_extents()
460 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_merge_center_extents()
466 error = xfs_refcount_delete(cur, &found_rec); in xfs_refcount_merge_center_extents()
469 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_merge_center_extents()
476 error = xfs_refcount_lookup_le(cur, left->rc_domain, in xfs_refcount_merge_center_extents()
480 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_merge_center_extents()
486 error = xfs_refcount_update(cur, left); in xfs_refcount_merge_center_extents()
494 trace_xfs_refcount_merge_center_extents_error(cur->bc_mp, in xfs_refcount_merge_center_extents()
495 cur->bc_ag.pag->pag_agno, error, _RET_IP_); in xfs_refcount_merge_center_extents()
504 struct xfs_btree_cur *cur, in xfs_refcount_merge_left_extent() argument
513 trace_xfs_refcount_merge_left_extent(cur->bc_mp, in xfs_refcount_merge_left_extent()
514 cur->bc_ag.pag->pag_agno, left, cleft); in xfs_refcount_merge_left_extent()
520 error = xfs_refcount_lookup_le(cur, cleft->rc_domain, in xfs_refcount_merge_left_extent()
524 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_merge_left_extent()
529 error = xfs_refcount_delete(cur, &found_rec); in xfs_refcount_merge_left_extent()
532 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_merge_left_extent()
539 error = xfs_refcount_lookup_le(cur, left->rc_domain, in xfs_refcount_merge_left_extent()
543 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_merge_left_extent()
549 error = xfs_refcount_update(cur, left); in xfs_refcount_merge_left_extent()
558 trace_xfs_refcount_merge_left_extent_error(cur->bc_mp, in xfs_refcount_merge_left_extent()
559 cur->bc_ag.pag->pag_agno, error, _RET_IP_); in xfs_refcount_merge_left_extent()
568 struct xfs_btree_cur *cur, in xfs_refcount_merge_right_extent() argument
576 trace_xfs_refcount_merge_right_extent(cur->bc_mp, in xfs_refcount_merge_right_extent()
577 cur->bc_ag.pag->pag_agno, cright, right); in xfs_refcount_merge_right_extent()
586 error = xfs_refcount_lookup_le(cur, cright->rc_domain, in xfs_refcount_merge_right_extent()
590 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_merge_right_extent()
595 error = xfs_refcount_delete(cur, &found_rec); in xfs_refcount_merge_right_extent()
598 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_merge_right_extent()
605 error = xfs_refcount_lookup_le(cur, right->rc_domain, in xfs_refcount_merge_right_extent()
609 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_merge_right_extent()
616 error = xfs_refcount_update(cur, right); in xfs_refcount_merge_right_extent()
624 trace_xfs_refcount_merge_right_extent_error(cur->bc_mp, in xfs_refcount_merge_right_extent()
625 cur->bc_ag.pag->pag_agno, error, _RET_IP_); in xfs_refcount_merge_right_extent()
635 struct xfs_btree_cur *cur, in xfs_refcount_find_left_extents() argument
647 error = xfs_refcount_lookup_le(cur, domain, agbno - 1, &found_rec); in xfs_refcount_find_left_extents()
653 error = xfs_refcount_get_rec(cur, &tmp, &found_rec); in xfs_refcount_find_left_extents()
656 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_find_left_extents()
668 error = xfs_btree_increment(cur, 0, &found_rec); in xfs_refcount_find_left_extents()
672 error = xfs_refcount_get_rec(cur, &tmp, &found_rec); in xfs_refcount_find_left_extents()
675 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_find_left_extents()
712 trace_xfs_refcount_find_left_extent(cur->bc_mp, cur->bc_ag.pag->pag_agno, in xfs_refcount_find_left_extents()
717 trace_xfs_refcount_find_left_extent_error(cur->bc_mp, in xfs_refcount_find_left_extents()
718 cur->bc_ag.pag->pag_agno, error, _RET_IP_); in xfs_refcount_find_left_extents()
728 struct xfs_btree_cur *cur, 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()
746 error = xfs_refcount_get_rec(cur, &tmp, &found_rec); in xfs_refcount_find_right_extents()
749 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_find_right_extents()
761 error = xfs_btree_decrement(cur, 0, &found_rec); in xfs_refcount_find_right_extents()
765 error = xfs_refcount_get_rec(cur, &tmp, &found_rec); in xfs_refcount_find_right_extents()
768 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_find_right_extents()
805 trace_xfs_refcount_find_right_extent(cur->bc_mp, cur->bc_ag.pag->pag_agno, in xfs_refcount_find_right_extents()
810 trace_xfs_refcount_find_right_extent_error(cur->bc_mp, in xfs_refcount_find_right_extents()
811 cur->bc_ag.pag->pag_agno, error, _RET_IP_); in xfs_refcount_find_right_extents()
953 struct xfs_btree_cur *cur, in xfs_refcount_merge_extents() argument
972 error = xfs_refcount_find_left_extents(cur, &left, &cleft, domain, in xfs_refcount_merge_extents()
976 error = xfs_refcount_find_right_extents(cur, &right, &cright, domain, in xfs_refcount_merge_extents()
992 return xfs_refcount_merge_center_extents(cur, &left, &cleft, in xfs_refcount_merge_extents()
999 error = xfs_refcount_merge_left_extent(cur, &left, &cleft, in xfs_refcount_merge_extents()
1015 return xfs_refcount_merge_right_extent(cur, &right, &cright, in xfs_refcount_merge_extents()
1030 struct xfs_btree_cur *cur) in xfs_refcount_still_have_space() argument
1038 overhead = xfs_allocfree_block_count(cur->bc_mp, in xfs_refcount_still_have_space()
1039 cur->bc_ag.refc.shape_changes); in xfs_refcount_still_have_space()
1040 overhead += cur->bc_mp->m_refc_maxlevels; in xfs_refcount_still_have_space()
1041 overhead *= cur->bc_mp->m_sb.sb_blocksize; in xfs_refcount_still_have_space()
1047 if (cur->bc_ag.refc.nr_ops > 2 && in xfs_refcount_still_have_space()
1048 XFS_TEST_ERROR(false, cur->bc_mp, in xfs_refcount_still_have_space()
1052 if (cur->bc_ag.refc.nr_ops == 0) in xfs_refcount_still_have_space()
1054 else if (overhead > cur->bc_tp->t_log_res) in xfs_refcount_still_have_space()
1056 return cur->bc_tp->t_log_res - overhead > in xfs_refcount_still_have_space()
1057 cur->bc_ag.refc.nr_ops * XFS_REFCOUNT_ITEM_OVERHEAD; in xfs_refcount_still_have_space()
1068 struct xfs_btree_cur *cur, in xfs_refcount_adjust_extents() argument
1082 error = xfs_refcount_lookup_ge(cur, XFS_REFC_DOMAIN_SHARED, *agbno, in xfs_refcount_adjust_extents()
1087 while (*aglen > 0 && xfs_refcount_still_have_space(cur)) { in xfs_refcount_adjust_extents()
1088 error = xfs_refcount_get_rec(cur, &ext, &found_rec); in xfs_refcount_adjust_extents()
1092 ext.rc_startblock = cur->bc_mp->m_sb.sb_agblocks; in xfs_refcount_adjust_extents()
1110 trace_xfs_refcount_modify_extent(cur->bc_mp, in xfs_refcount_adjust_extents()
1111 cur->bc_ag.pag->pag_agno, &tmp); in xfs_refcount_adjust_extents()
1117 cur->bc_ag.refc.nr_ops++; in xfs_refcount_adjust_extents()
1119 error = xfs_refcount_insert(cur, &tmp, in xfs_refcount_adjust_extents()
1123 if (XFS_IS_CORRUPT(cur->bc_mp, in xfs_refcount_adjust_extents()
1129 fsbno = XFS_AGB_TO_FSB(cur->bc_mp, in xfs_refcount_adjust_extents()
1130 cur->bc_ag.pag->pag_agno, in xfs_refcount_adjust_extents()
1132 xfs_free_extent_later(cur->bc_tp, fsbno, in xfs_refcount_adjust_extents()
1140 if (*aglen == 0 || !xfs_refcount_still_have_space(cur)) in xfs_refcount_adjust_extents()
1144 error = xfs_refcount_lookup_ge(cur, in xfs_refcount_adjust_extents()
1158 if (XFS_IS_CORRUPT(cur->bc_mp, ext.rc_blockcount == 0) || in xfs_refcount_adjust_extents()
1159 XFS_IS_CORRUPT(cur->bc_mp, ext.rc_blockcount > *aglen)) { in xfs_refcount_adjust_extents()
1171 trace_xfs_refcount_modify_extent(cur->bc_mp, in xfs_refcount_adjust_extents()
1172 cur->bc_ag.pag->pag_agno, &ext); in xfs_refcount_adjust_extents()
1173 cur->bc_ag.refc.nr_ops++; in xfs_refcount_adjust_extents()
1175 error = xfs_refcount_update(cur, &ext); in xfs_refcount_adjust_extents()
1179 error = xfs_refcount_delete(cur, &found_rec); in xfs_refcount_adjust_extents()
1182 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_adjust_extents()
1188 fsbno = XFS_AGB_TO_FSB(cur->bc_mp, in xfs_refcount_adjust_extents()
1189 cur->bc_ag.pag->pag_agno, in xfs_refcount_adjust_extents()
1191 xfs_free_extent_later(cur->bc_tp, fsbno, in xfs_refcount_adjust_extents()
1196 error = xfs_btree_increment(cur, 0, &found_rec); in xfs_refcount_adjust_extents()
1207 trace_xfs_refcount_modify_extent_error(cur->bc_mp, in xfs_refcount_adjust_extents()
1208 cur->bc_ag.pag->pag_agno, error, _RET_IP_); in xfs_refcount_adjust_extents()
1215 struct xfs_btree_cur *cur, in xfs_refcount_adjust() argument
1225 trace_xfs_refcount_increase(cur->bc_mp, in xfs_refcount_adjust()
1226 cur->bc_ag.pag->pag_agno, *agbno, *aglen); in xfs_refcount_adjust()
1228 trace_xfs_refcount_decrease(cur->bc_mp, in xfs_refcount_adjust()
1229 cur->bc_ag.pag->pag_agno, *agbno, *aglen); in xfs_refcount_adjust()
1234 error = xfs_refcount_split_extent(cur, XFS_REFC_DOMAIN_SHARED, in xfs_refcount_adjust()
1241 error = xfs_refcount_split_extent(cur, XFS_REFC_DOMAIN_SHARED, in xfs_refcount_adjust()
1251 error = xfs_refcount_merge_extents(cur, XFS_REFC_DOMAIN_SHARED, in xfs_refcount_adjust()
1258 cur->bc_ag.refc.shape_changes++; in xfs_refcount_adjust()
1261 error = xfs_refcount_adjust_extents(cur, agbno, aglen, adj); in xfs_refcount_adjust()
1268 trace_xfs_refcount_adjust_error(cur->bc_mp, cur->bc_ag.pag->pag_agno, in xfs_refcount_adjust()
1296 struct xfs_btree_cur *cur, in xfs_refcount_continue_op() argument
1300 struct xfs_mount *mp = cur->bc_mp; in xfs_refcount_continue_op()
1301 struct xfs_perag *pag = cur->bc_ag.pag; in xfs_refcount_continue_op()
1481 struct xfs_btree_cur *cur, in xfs_refcount_find_shared() argument
1493 trace_xfs_refcount_find_shared(cur->bc_mp, cur->bc_ag.pag->pag_agno, in xfs_refcount_find_shared()
1501 error = xfs_refcount_lookup_le(cur, XFS_REFC_DOMAIN_SHARED, agbno, in xfs_refcount_find_shared()
1507 error = xfs_btree_increment(cur, 0, &have); in xfs_refcount_find_shared()
1513 error = xfs_refcount_get_rec(cur, &tmp, &i); in xfs_refcount_find_shared()
1516 if (XFS_IS_CORRUPT(cur->bc_mp, i != 1)) { in xfs_refcount_find_shared()
1525 error = xfs_btree_increment(cur, 0, &have); in xfs_refcount_find_shared()
1530 error = xfs_refcount_get_rec(cur, &tmp, &i); in xfs_refcount_find_shared()
1533 if (XFS_IS_CORRUPT(cur->bc_mp, i != 1)) { in xfs_refcount_find_shared()
1558 error = xfs_btree_increment(cur, 0, &have); in xfs_refcount_find_shared()
1563 error = xfs_refcount_get_rec(cur, &tmp, &i); in xfs_refcount_find_shared()
1566 if (XFS_IS_CORRUPT(cur->bc_mp, i != 1)) { in xfs_refcount_find_shared()
1578 trace_xfs_refcount_find_shared_result(cur->bc_mp, in xfs_refcount_find_shared()
1579 cur->bc_ag.pag->pag_agno, *fbno, *flen); in xfs_refcount_find_shared()
1583 trace_xfs_refcount_find_shared_error(cur->bc_mp, in xfs_refcount_find_shared()
1584 cur->bc_ag.pag->pag_agno, error, _RET_IP_); in xfs_refcount_find_shared()
1642 struct xfs_btree_cur *cur, in xfs_refcount_adjust_cow_extents() argument
1655 error = xfs_refcount_lookup_ge(cur, XFS_REFC_DOMAIN_COW, agbno, in xfs_refcount_adjust_cow_extents()
1659 error = xfs_refcount_get_rec(cur, &ext, &found_rec); in xfs_refcount_adjust_cow_extents()
1662 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec && in xfs_refcount_adjust_cow_extents()
1668 ext.rc_startblock = cur->bc_mp->m_sb.sb_agblocks; in xfs_refcount_adjust_cow_extents()
1677 if (XFS_IS_CORRUPT(cur->bc_mp, in xfs_refcount_adjust_cow_extents()
1688 trace_xfs_refcount_modify_extent(cur->bc_mp, in xfs_refcount_adjust_cow_extents()
1689 cur->bc_ag.pag->pag_agno, &tmp); in xfs_refcount_adjust_cow_extents()
1691 error = xfs_refcount_insert(cur, &tmp, in xfs_refcount_adjust_cow_extents()
1695 if (XFS_IS_CORRUPT(cur->bc_mp, found_tmp != 1)) { in xfs_refcount_adjust_cow_extents()
1702 if (XFS_IS_CORRUPT(cur->bc_mp, ext.rc_startblock != agbno)) { in xfs_refcount_adjust_cow_extents()
1706 if (XFS_IS_CORRUPT(cur->bc_mp, ext.rc_blockcount != aglen)) { in xfs_refcount_adjust_cow_extents()
1710 if (XFS_IS_CORRUPT(cur->bc_mp, ext.rc_refcount != 1)) { in xfs_refcount_adjust_cow_extents()
1716 trace_xfs_refcount_modify_extent(cur->bc_mp, in xfs_refcount_adjust_cow_extents()
1717 cur->bc_ag.pag->pag_agno, &ext); in xfs_refcount_adjust_cow_extents()
1718 error = xfs_refcount_delete(cur, &found_rec); in xfs_refcount_adjust_cow_extents()
1721 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_adjust_cow_extents()
1732 trace_xfs_refcount_modify_extent_error(cur->bc_mp, in xfs_refcount_adjust_cow_extents()
1733 cur->bc_ag.pag->pag_agno, error, _RET_IP_); in xfs_refcount_adjust_cow_extents()
1742 struct xfs_btree_cur *cur, in xfs_refcount_adjust_cow() argument
1753 error = xfs_refcount_split_extent(cur, XFS_REFC_DOMAIN_COW, in xfs_refcount_adjust_cow()
1758 error = xfs_refcount_split_extent(cur, XFS_REFC_DOMAIN_COW, in xfs_refcount_adjust_cow()
1766 error = xfs_refcount_merge_extents(cur, XFS_REFC_DOMAIN_COW, &agbno, in xfs_refcount_adjust_cow()
1772 error = xfs_refcount_adjust_cow_extents(cur, agbno, aglen, adj); in xfs_refcount_adjust_cow()
1779 trace_xfs_refcount_adjust_cow_error(cur->bc_mp, cur->bc_ag.pag->pag_agno, in xfs_refcount_adjust_cow()
1863 struct xfs_btree_cur *cur, in xfs_refcount_recover_extent() argument
1870 if (XFS_IS_CORRUPT(cur->bc_mp, in xfs_refcount_recover_extent()
1879 if (XFS_IS_CORRUPT(cur->bc_mp, in xfs_refcount_recover_extent()
1896 struct xfs_btree_cur *cur; in xfs_refcount_recover_cow_leftovers() local
1929 cur = xfs_refcountbt_init_cursor(mp, tp, agbp, pag); in xfs_refcount_recover_cow_leftovers()
1936 error = xfs_btree_query_range(cur, &low, &high, in xfs_refcount_recover_cow_leftovers()
1938 xfs_btree_del_cursor(cur, error); in xfs_refcount_recover_cow_leftovers()
1986 struct xfs_btree_cur *cur, in xfs_refcount_has_record() argument
2001 return xfs_btree_has_record(cur, &low, &high, exists); in xfs_refcount_has_record()