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()
828 struct xfs_btree_cur *cur, in xfs_refcount_merge_extents() argument
847 error = xfs_refcount_find_left_extents(cur, &left, &cleft, domain, in xfs_refcount_merge_extents()
851 error = xfs_refcount_find_right_extents(cur, &right, &cright, domain, in xfs_refcount_merge_extents()
872 return xfs_refcount_merge_center_extents(cur, &left, &cleft, in xfs_refcount_merge_extents()
882 error = xfs_refcount_merge_left_extent(cur, &left, &cleft, in xfs_refcount_merge_extents()
901 return xfs_refcount_merge_right_extent(cur, &right, &cright, in xfs_refcount_merge_extents()
916 struct xfs_btree_cur *cur) in xfs_refcount_still_have_space() argument
924 overhead = xfs_allocfree_block_count(cur->bc_mp, in xfs_refcount_still_have_space()
925 cur->bc_ag.refc.shape_changes); in xfs_refcount_still_have_space()
926 overhead += cur->bc_mp->m_refc_maxlevels; in xfs_refcount_still_have_space()
927 overhead *= cur->bc_mp->m_sb.sb_blocksize; in xfs_refcount_still_have_space()
933 if (cur->bc_ag.refc.nr_ops > 2 && in xfs_refcount_still_have_space()
934 XFS_TEST_ERROR(false, cur->bc_mp, in xfs_refcount_still_have_space()
938 if (cur->bc_ag.refc.nr_ops == 0) in xfs_refcount_still_have_space()
940 else if (overhead > cur->bc_tp->t_log_res) in xfs_refcount_still_have_space()
942 return cur->bc_tp->t_log_res - overhead > in xfs_refcount_still_have_space()
943 cur->bc_ag.refc.nr_ops * XFS_REFCOUNT_ITEM_OVERHEAD; in xfs_refcount_still_have_space()
954 struct xfs_btree_cur *cur, in xfs_refcount_adjust_extents() argument
968 error = xfs_refcount_lookup_ge(cur, XFS_REFC_DOMAIN_SHARED, *agbno, in xfs_refcount_adjust_extents()
973 while (*aglen > 0 && xfs_refcount_still_have_space(cur)) { in xfs_refcount_adjust_extents()
974 error = xfs_refcount_get_rec(cur, &ext, &found_rec); in xfs_refcount_adjust_extents()
978 ext.rc_startblock = cur->bc_mp->m_sb.sb_agblocks; in xfs_refcount_adjust_extents()
996 trace_xfs_refcount_modify_extent(cur->bc_mp, in xfs_refcount_adjust_extents()
997 cur->bc_ag.pag->pag_agno, &tmp); in xfs_refcount_adjust_extents()
1003 cur->bc_ag.refc.nr_ops++; in xfs_refcount_adjust_extents()
1005 error = xfs_refcount_insert(cur, &tmp, in xfs_refcount_adjust_extents()
1009 if (XFS_IS_CORRUPT(cur->bc_mp, in xfs_refcount_adjust_extents()
1015 fsbno = XFS_AGB_TO_FSB(cur->bc_mp, in xfs_refcount_adjust_extents()
1016 cur->bc_ag.pag->pag_agno, in xfs_refcount_adjust_extents()
1018 xfs_free_extent_later(cur->bc_tp, fsbno, in xfs_refcount_adjust_extents()
1026 if (*aglen == 0 || !xfs_refcount_still_have_space(cur)) in xfs_refcount_adjust_extents()
1030 error = xfs_refcount_lookup_ge(cur, in xfs_refcount_adjust_extents()
1044 if (XFS_IS_CORRUPT(cur->bc_mp, ext.rc_blockcount == 0) || in xfs_refcount_adjust_extents()
1045 XFS_IS_CORRUPT(cur->bc_mp, ext.rc_blockcount > *aglen)) { in xfs_refcount_adjust_extents()
1057 trace_xfs_refcount_modify_extent(cur->bc_mp, in xfs_refcount_adjust_extents()
1058 cur->bc_ag.pag->pag_agno, &ext); in xfs_refcount_adjust_extents()
1059 cur->bc_ag.refc.nr_ops++; in xfs_refcount_adjust_extents()
1061 error = xfs_refcount_update(cur, &ext); in xfs_refcount_adjust_extents()
1065 error = xfs_refcount_delete(cur, &found_rec); in xfs_refcount_adjust_extents()
1068 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_adjust_extents()
1074 fsbno = XFS_AGB_TO_FSB(cur->bc_mp, in xfs_refcount_adjust_extents()
1075 cur->bc_ag.pag->pag_agno, in xfs_refcount_adjust_extents()
1077 xfs_free_extent_later(cur->bc_tp, fsbno, in xfs_refcount_adjust_extents()
1082 error = xfs_btree_increment(cur, 0, &found_rec); in xfs_refcount_adjust_extents()
1093 trace_xfs_refcount_modify_extent_error(cur->bc_mp, in xfs_refcount_adjust_extents()
1094 cur->bc_ag.pag->pag_agno, error, _RET_IP_); in xfs_refcount_adjust_extents()
1101 struct xfs_btree_cur *cur, in xfs_refcount_adjust() argument
1115 trace_xfs_refcount_increase(cur->bc_mp, cur->bc_ag.pag->pag_agno, in xfs_refcount_adjust()
1118 trace_xfs_refcount_decrease(cur->bc_mp, cur->bc_ag.pag->pag_agno, in xfs_refcount_adjust()
1124 error = xfs_refcount_split_extent(cur, XFS_REFC_DOMAIN_SHARED, in xfs_refcount_adjust()
1131 error = xfs_refcount_split_extent(cur, XFS_REFC_DOMAIN_SHARED, in xfs_refcount_adjust()
1141 error = xfs_refcount_merge_extents(cur, XFS_REFC_DOMAIN_SHARED, in xfs_refcount_adjust()
1148 cur->bc_ag.refc.shape_changes++; in xfs_refcount_adjust()
1151 error = xfs_refcount_adjust_extents(cur, new_agbno, new_aglen, adj); in xfs_refcount_adjust()
1158 trace_xfs_refcount_adjust_error(cur->bc_mp, cur->bc_ag.pag->pag_agno, in xfs_refcount_adjust()
1186 struct xfs_btree_cur *cur, in xfs_refcount_continue_op() argument
1192 struct xfs_mount *mp = cur->bc_mp; in xfs_refcount_continue_op()
1193 struct xfs_perag *pag = cur->bc_ag.pag; in xfs_refcount_continue_op()
1377 struct xfs_btree_cur *cur, in xfs_refcount_find_shared() argument
1389 trace_xfs_refcount_find_shared(cur->bc_mp, cur->bc_ag.pag->pag_agno, in xfs_refcount_find_shared()
1397 error = xfs_refcount_lookup_le(cur, XFS_REFC_DOMAIN_SHARED, agbno, in xfs_refcount_find_shared()
1403 error = xfs_btree_increment(cur, 0, &have); in xfs_refcount_find_shared()
1409 error = xfs_refcount_get_rec(cur, &tmp, &i); in xfs_refcount_find_shared()
1412 if (XFS_IS_CORRUPT(cur->bc_mp, i != 1)) { in xfs_refcount_find_shared()
1421 error = xfs_btree_increment(cur, 0, &have); in xfs_refcount_find_shared()
1426 error = xfs_refcount_get_rec(cur, &tmp, &i); in xfs_refcount_find_shared()
1429 if (XFS_IS_CORRUPT(cur->bc_mp, i != 1)) { in xfs_refcount_find_shared()
1454 error = xfs_btree_increment(cur, 0, &have); in xfs_refcount_find_shared()
1459 error = xfs_refcount_get_rec(cur, &tmp, &i); in xfs_refcount_find_shared()
1462 if (XFS_IS_CORRUPT(cur->bc_mp, i != 1)) { in xfs_refcount_find_shared()
1474 trace_xfs_refcount_find_shared_result(cur->bc_mp, in xfs_refcount_find_shared()
1475 cur->bc_ag.pag->pag_agno, *fbno, *flen); in xfs_refcount_find_shared()
1479 trace_xfs_refcount_find_shared_error(cur->bc_mp, in xfs_refcount_find_shared()
1480 cur->bc_ag.pag->pag_agno, error, _RET_IP_); in xfs_refcount_find_shared()
1538 struct xfs_btree_cur *cur, in xfs_refcount_adjust_cow_extents() argument
1551 error = xfs_refcount_lookup_ge(cur, XFS_REFC_DOMAIN_COW, agbno, in xfs_refcount_adjust_cow_extents()
1555 error = xfs_refcount_get_rec(cur, &ext, &found_rec); in xfs_refcount_adjust_cow_extents()
1558 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec && in xfs_refcount_adjust_cow_extents()
1564 ext.rc_startblock = cur->bc_mp->m_sb.sb_agblocks; in xfs_refcount_adjust_cow_extents()
1573 if (XFS_IS_CORRUPT(cur->bc_mp, in xfs_refcount_adjust_cow_extents()
1584 trace_xfs_refcount_modify_extent(cur->bc_mp, in xfs_refcount_adjust_cow_extents()
1585 cur->bc_ag.pag->pag_agno, &tmp); in xfs_refcount_adjust_cow_extents()
1587 error = xfs_refcount_insert(cur, &tmp, in xfs_refcount_adjust_cow_extents()
1591 if (XFS_IS_CORRUPT(cur->bc_mp, found_tmp != 1)) { in xfs_refcount_adjust_cow_extents()
1598 if (XFS_IS_CORRUPT(cur->bc_mp, ext.rc_startblock != agbno)) { in xfs_refcount_adjust_cow_extents()
1602 if (XFS_IS_CORRUPT(cur->bc_mp, ext.rc_blockcount != aglen)) { in xfs_refcount_adjust_cow_extents()
1606 if (XFS_IS_CORRUPT(cur->bc_mp, ext.rc_refcount != 1)) { in xfs_refcount_adjust_cow_extents()
1612 trace_xfs_refcount_modify_extent(cur->bc_mp, in xfs_refcount_adjust_cow_extents()
1613 cur->bc_ag.pag->pag_agno, &ext); in xfs_refcount_adjust_cow_extents()
1614 error = xfs_refcount_delete(cur, &found_rec); in xfs_refcount_adjust_cow_extents()
1617 if (XFS_IS_CORRUPT(cur->bc_mp, found_rec != 1)) { in xfs_refcount_adjust_cow_extents()
1628 trace_xfs_refcount_modify_extent_error(cur->bc_mp, in xfs_refcount_adjust_cow_extents()
1629 cur->bc_ag.pag->pag_agno, error, _RET_IP_); in xfs_refcount_adjust_cow_extents()
1638 struct xfs_btree_cur *cur, in xfs_refcount_adjust_cow() argument
1649 error = xfs_refcount_split_extent(cur, XFS_REFC_DOMAIN_COW, in xfs_refcount_adjust_cow()
1654 error = xfs_refcount_split_extent(cur, XFS_REFC_DOMAIN_COW, in xfs_refcount_adjust_cow()
1662 error = xfs_refcount_merge_extents(cur, XFS_REFC_DOMAIN_COW, &agbno, in xfs_refcount_adjust_cow()
1668 error = xfs_refcount_adjust_cow_extents(cur, agbno, aglen, adj); in xfs_refcount_adjust_cow()
1675 trace_xfs_refcount_adjust_cow_error(cur->bc_mp, cur->bc_ag.pag->pag_agno, in xfs_refcount_adjust_cow()
1759 struct xfs_btree_cur *cur, in xfs_refcount_recover_extent() argument
1766 if (XFS_IS_CORRUPT(cur->bc_mp, in xfs_refcount_recover_extent()
1775 if (XFS_IS_CORRUPT(cur->bc_mp, in xfs_refcount_recover_extent()
1792 struct xfs_btree_cur *cur; in xfs_refcount_recover_cow_leftovers() local
1825 cur = xfs_refcountbt_init_cursor(mp, tp, agbp, pag); in xfs_refcount_recover_cow_leftovers()
1832 error = xfs_btree_query_range(cur, &low, &high, in xfs_refcount_recover_cow_leftovers()
1834 xfs_btree_del_cursor(cur, error); in xfs_refcount_recover_cow_leftovers()
1882 struct xfs_btree_cur *cur, in xfs_refcount_has_record() argument
1897 return xfs_btree_has_record(cur, &low, &high, exists); in xfs_refcount_has_record()