Lines Matching defs:cnt_cur

474 	struct xfs_btree_cur *cnt_cur,	/* cursor for by-size btree */
490 mp = cnt_cur->bc_mp;
497 if ((error = xfs_alloc_get_rec(cnt_cur, &nfbno1, &nflen1, &i)))
506 if ((error = xfs_alloc_lookup_eq(cnt_cur, fbno, flen, &i)))
532 if (bno_cur->bc_nlevels == 1 && cnt_cur->bc_nlevels == 1) {
537 cntblock = XFS_BUF_TO_BLOCK(cnt_cur->bc_levels[0].bp);
570 if ((error = xfs_btree_delete(cnt_cur, &i)))
578 if ((error = xfs_alloc_lookup_eq(cnt_cur, nfbno1, nflen1, &i)))
582 if ((error = xfs_btree_insert(cnt_cur, &i)))
588 if ((error = xfs_alloc_lookup_eq(cnt_cur, nfbno2, nflen2, &i)))
592 if ((error = xfs_btree_insert(cnt_cur, &i)))
1187 struct xfs_btree_cur *cnt_cur;/* by count btree cursor */
1262 cnt_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp,
1265 error = xfs_alloc_fixup_trees(cnt_cur, bno_cur, fbno, flen, args->agbno,
1268 xfs_btree_del_cursor(cnt_cur, XFS_BTREE_ERROR);
1273 xfs_btree_del_cursor(cnt_cur, XFS_BTREE_NOERROR);
1659 struct xfs_btree_cur *cnt_cur;
1675 cnt_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp,
1682 if ((error = xfs_alloc_lookup_ge(cnt_cur, 0,
1694 error = xfs_alloc_ag_vextent_small(args, cnt_cur,
1699 xfs_btree_del_cursor(cnt_cur, XFS_BTREE_NOERROR);
1711 error = xfs_alloc_get_rec(cnt_cur, &fbno, &flen, &i);
1725 error = xfs_btree_increment(cnt_cur, 0, &i);
1745 xfs_btree_del_cursor(cnt_cur, XFS_BTREE_NOERROR);
1775 if ((error = xfs_btree_decrement(cnt_cur, 0, &i)))
1779 if ((error = xfs_alloc_get_rec(cnt_cur, &fbno, &flen,
1807 if ((error = xfs_alloc_lookup_eq(cnt_cur, bestfbno, bestflen,
1840 xfs_btree_del_cursor(cnt_cur, XFS_BTREE_NOERROR);
1857 if ((error = xfs_alloc_fixup_trees(cnt_cur, bno_cur, fbno, flen,
1860 xfs_btree_del_cursor(cnt_cur, XFS_BTREE_NOERROR);
1862 cnt_cur = bno_cur = NULL;
1876 if (cnt_cur)
1877 xfs_btree_del_cursor(cnt_cur, XFS_BTREE_ERROR);
1883 xfs_btree_del_cursor(cnt_cur, XFS_BTREE_NOERROR);
1904 struct xfs_btree_cur *cnt_cur;
1917 bno_cur = cnt_cur = NULL;
1999 cnt_cur = xfs_allocbt_init_cursor(mp, tp, agbp, pag, XFS_BTNUM_CNT);
2008 if ((error = xfs_alloc_lookup_eq(cnt_cur, ltbno, ltlen, &i)))
2014 if ((error = xfs_btree_delete(cnt_cur, &i)))
2023 if ((error = xfs_alloc_lookup_eq(cnt_cur, gtbno, gtlen, &i)))
2029 if ((error = xfs_btree_delete(cnt_cur, &i)))
2090 if ((error = xfs_alloc_lookup_eq(cnt_cur, ltbno, ltlen, &i)))
2096 if ((error = xfs_btree_delete(cnt_cur, &i)))
2125 if ((error = xfs_alloc_lookup_eq(cnt_cur, gtbno, gtlen, &i)))
2131 if ((error = xfs_btree_delete(cnt_cur, &i)))
2165 if ((error = xfs_alloc_lookup_eq(cnt_cur, nbno, nlen, &i)))
2171 if ((error = xfs_btree_insert(cnt_cur, &i)))
2177 xfs_btree_del_cursor(cnt_cur, XFS_BTREE_NOERROR);
2178 cnt_cur = NULL;
2199 if (cnt_cur)
2200 xfs_btree_del_cursor(cnt_cur, XFS_BTREE_ERROR);
2595 struct xfs_btree_cur *cnt_cur;
2600 cnt_cur = xfs_allocbt_init_cursor(args->mp, args->tp, agbp,
2602 error = xfs_alloc_lookup_ge(cnt_cur, 0, args->minlen, stat);
2611 error = xfs_alloc_get_rec(cnt_cur, &fbno, &flen, stat);
2619 xfs_btree_del_cursor(cnt_cur, error);