Lines Matching defs:cnt_cur

429 	xfs_btree_cur_t	*cnt_cur,	/* cursor for by-size btree */
445 mp = cnt_cur->bc_mp;
452 if ((error = xfs_alloc_get_rec(cnt_cur, &nfbno1, &nflen1, &i)))
461 if ((error = xfs_alloc_lookup_eq(cnt_cur, fbno, flen, &i)))
487 if (bno_cur->bc_nlevels == 1 && cnt_cur->bc_nlevels == 1) {
492 cntblock = XFS_BUF_TO_BLOCK(cnt_cur->bc_bufs[0]);
525 if ((error = xfs_btree_delete(cnt_cur, &i)))
533 if ((error = xfs_alloc_lookup_eq(cnt_cur, nfbno1, nflen1, &i)))
537 if ((error = xfs_btree_insert(cnt_cur, &i)))
543 if ((error = xfs_alloc_lookup_eq(cnt_cur, nfbno2, nflen2, &i)))
547 if ((error = xfs_btree_insert(cnt_cur, &i)))
1205 xfs_btree_cur_t *cnt_cur;/* by count btree cursor */
1280 cnt_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp,
1283 error = xfs_alloc_fixup_trees(cnt_cur, bno_cur, fbno, flen, args->agbno,
1286 xfs_btree_del_cursor(cnt_cur, XFS_BTREE_ERROR);
1291 xfs_btree_del_cursor(cnt_cur, XFS_BTREE_NOERROR);
1663 xfs_btree_cur_t *cnt_cur; /* cursor for cnt btree */
1677 cnt_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp,
1685 if ((error = xfs_alloc_lookup_ge(cnt_cur, 0,
1697 error = xfs_alloc_ag_vextent_small(args, cnt_cur,
1702 xfs_btree_del_cursor(cnt_cur, XFS_BTREE_NOERROR);
1714 error = xfs_alloc_get_rec(cnt_cur, &fbno, &flen, &i);
1728 error = xfs_btree_increment(cnt_cur, 0, &i);
1737 xfs_btree_del_cursor(cnt_cur,
1772 if ((error = xfs_btree_decrement(cnt_cur, 0, &i)))
1776 if ((error = xfs_alloc_get_rec(cnt_cur, &fbno, &flen,
1804 if ((error = xfs_alloc_lookup_eq(cnt_cur, bestfbno, bestflen,
1823 xfs_btree_del_cursor(cnt_cur, XFS_BTREE_NOERROR);
1842 if ((error = xfs_alloc_fixup_trees(cnt_cur, bno_cur, fbno, flen,
1845 xfs_btree_del_cursor(cnt_cur, XFS_BTREE_NOERROR);
1847 cnt_cur = bno_cur = NULL;
1861 if (cnt_cur)
1862 xfs_btree_del_cursor(cnt_cur, XFS_BTREE_ERROR);
1868 xfs_btree_del_cursor(cnt_cur, XFS_BTREE_NOERROR);
1889 struct xfs_btree_cur *cnt_cur;
1901 bno_cur = cnt_cur = NULL;
1983 cnt_cur = xfs_allocbt_init_cursor(mp, tp, agbp, agno, XFS_BTNUM_CNT);
1992 if ((error = xfs_alloc_lookup_eq(cnt_cur, ltbno, ltlen, &i)))
1998 if ((error = xfs_btree_delete(cnt_cur, &i)))
2007 if ((error = xfs_alloc_lookup_eq(cnt_cur, gtbno, gtlen, &i)))
2013 if ((error = xfs_btree_delete(cnt_cur, &i)))
2074 if ((error = xfs_alloc_lookup_eq(cnt_cur, ltbno, ltlen, &i)))
2080 if ((error = xfs_btree_delete(cnt_cur, &i)))
2109 if ((error = xfs_alloc_lookup_eq(cnt_cur, gtbno, gtlen, &i)))
2115 if ((error = xfs_btree_delete(cnt_cur, &i)))
2149 if ((error = xfs_alloc_lookup_eq(cnt_cur, nbno, nlen, &i)))
2155 if ((error = xfs_btree_insert(cnt_cur, &i)))
2161 xfs_btree_del_cursor(cnt_cur, XFS_BTREE_NOERROR);
2162 cnt_cur = NULL;
2183 if (cnt_cur)
2184 xfs_btree_del_cursor(cnt_cur, XFS_BTREE_ERROR);