cnt_cur 411 fs/xfs/libxfs/xfs_alloc.c xfs_btree_cur_t *cnt_cur, /* cursor for by-size btree */ cnt_cur 427 fs/xfs/libxfs/xfs_alloc.c mp = cnt_cur->bc_mp; cnt_cur 434 fs/xfs/libxfs/xfs_alloc.c if ((error = xfs_alloc_get_rec(cnt_cur, &nfbno1, &nflen1, &i))) cnt_cur 440 fs/xfs/libxfs/xfs_alloc.c if ((error = xfs_alloc_lookup_eq(cnt_cur, fbno, flen, &i))) cnt_cur 461 fs/xfs/libxfs/xfs_alloc.c if (bno_cur->bc_nlevels == 1 && cnt_cur->bc_nlevels == 1) { cnt_cur 466 fs/xfs/libxfs/xfs_alloc.c cntblock = XFS_BUF_TO_BLOCK(cnt_cur->bc_bufs[0]); cnt_cur 497 fs/xfs/libxfs/xfs_alloc.c if ((error = xfs_btree_delete(cnt_cur, &i))) cnt_cur 504 fs/xfs/libxfs/xfs_alloc.c if ((error = xfs_alloc_lookup_eq(cnt_cur, nfbno1, nflen1, &i))) cnt_cur 507 fs/xfs/libxfs/xfs_alloc.c if ((error = xfs_btree_insert(cnt_cur, &i))) cnt_cur 512 fs/xfs/libxfs/xfs_alloc.c if ((error = xfs_alloc_lookup_eq(cnt_cur, nfbno2, nflen2, &i))) cnt_cur 515 fs/xfs/libxfs/xfs_alloc.c if ((error = xfs_btree_insert(cnt_cur, &i))) cnt_cur 883 fs/xfs/libxfs/xfs_alloc.c xfs_btree_cur_t *cnt_cur;/* by count btree cursor */ cnt_cur 955 fs/xfs/libxfs/xfs_alloc.c cnt_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp, cnt_cur 959 fs/xfs/libxfs/xfs_alloc.c error = xfs_alloc_fixup_trees(cnt_cur, bno_cur, fbno, flen, args->agbno, cnt_cur 962 fs/xfs/libxfs/xfs_alloc.c xfs_btree_del_cursor(cnt_cur, XFS_BTREE_ERROR); cnt_cur 967 fs/xfs/libxfs/xfs_alloc.c xfs_btree_del_cursor(cnt_cur, XFS_BTREE_NOERROR); cnt_cur 1093 fs/xfs/libxfs/xfs_alloc.c xfs_btree_cur_t *cnt_cur; /* cursor for count btree */ cnt_cur 1143 fs/xfs/libxfs/xfs_alloc.c cnt_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp, cnt_cur 1149 fs/xfs/libxfs/xfs_alloc.c if ((error = xfs_alloc_lookup_ge(cnt_cur, 0, args->maxlen, &i))) cnt_cur 1156 fs/xfs/libxfs/xfs_alloc.c if ((error = xfs_alloc_ag_vextent_small(args, cnt_cur, <bno, cnt_cur 1160 fs/xfs/libxfs/xfs_alloc.c xfs_btree_del_cursor(cnt_cur, XFS_BTREE_NOERROR); cnt_cur 1178 fs/xfs/libxfs/xfs_alloc.c while (xfs_btree_islastblock(cnt_cur, 0)) { cnt_cur 1195 fs/xfs/libxfs/xfs_alloc.c cnt_cur->bc_ptrs[0] = 1; cnt_cur 1197 fs/xfs/libxfs/xfs_alloc.c if ((error = xfs_alloc_get_rec(cnt_cur, <bno, cnt_cur 1203 fs/xfs/libxfs/xfs_alloc.c if ((error = xfs_btree_increment(cnt_cur, 0, &i))) cnt_cur 1210 fs/xfs/libxfs/xfs_alloc.c i = cnt_cur->bc_ptrs[0]; cnt_cur 1213 fs/xfs/libxfs/xfs_alloc.c error = xfs_btree_increment(cnt_cur, 0, &j)) { cnt_cur 1218 fs/xfs/libxfs/xfs_alloc.c if ((error = xfs_alloc_get_rec(cnt_cur, <bno, <len, &i))) cnt_cur 1240 fs/xfs/libxfs/xfs_alloc.c besti = cnt_cur->bc_ptrs[0]; cnt_cur 1252 fs/xfs/libxfs/xfs_alloc.c cnt_cur->bc_ptrs[0] = besti; cnt_cur 1253 fs/xfs/libxfs/xfs_alloc.c if ((error = xfs_alloc_get_rec(cnt_cur, <bno, <len, &i))) cnt_cur 1273 fs/xfs/libxfs/xfs_alloc.c if ((error = xfs_alloc_fixup_trees(cnt_cur, bno_cur_lt, ltbno, cnt_cur 1276 fs/xfs/libxfs/xfs_alloc.c xfs_btree_del_cursor(cnt_cur, XFS_BTREE_NOERROR); cnt_cur 1416 fs/xfs/libxfs/xfs_alloc.c xfs_btree_del_cursor(cnt_cur, XFS_BTREE_NOERROR); cnt_cur 1459 fs/xfs/libxfs/xfs_alloc.c if ((error = xfs_alloc_fixup_trees(cnt_cur, bno_cur_lt, ltbno, ltlen, cnt_cur 1468 fs/xfs/libxfs/xfs_alloc.c xfs_btree_del_cursor(cnt_cur, XFS_BTREE_NOERROR); cnt_cur 1474 fs/xfs/libxfs/xfs_alloc.c if (cnt_cur != NULL) cnt_cur 1475 fs/xfs/libxfs/xfs_alloc.c xfs_btree_del_cursor(cnt_cur, XFS_BTREE_ERROR); cnt_cur 1494 fs/xfs/libxfs/xfs_alloc.c xfs_btree_cur_t *cnt_cur; /* cursor for cnt btree */ cnt_cur 1508 fs/xfs/libxfs/xfs_alloc.c cnt_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp, cnt_cur 1516 fs/xfs/libxfs/xfs_alloc.c if ((error = xfs_alloc_lookup_ge(cnt_cur, 0, cnt_cur 1528 fs/xfs/libxfs/xfs_alloc.c error = xfs_alloc_ag_vextent_small(args, cnt_cur, cnt_cur 1533 fs/xfs/libxfs/xfs_alloc.c xfs_btree_del_cursor(cnt_cur, XFS_BTREE_NOERROR); cnt_cur 1545 fs/xfs/libxfs/xfs_alloc.c error = xfs_alloc_get_rec(cnt_cur, &fbno, &flen, &i); cnt_cur 1556 fs/xfs/libxfs/xfs_alloc.c error = xfs_btree_increment(cnt_cur, 0, &i); cnt_cur 1565 fs/xfs/libxfs/xfs_alloc.c xfs_btree_del_cursor(cnt_cur, cnt_cur 1595 fs/xfs/libxfs/xfs_alloc.c if ((error = xfs_btree_decrement(cnt_cur, 0, &i))) cnt_cur 1599 fs/xfs/libxfs/xfs_alloc.c if ((error = xfs_alloc_get_rec(cnt_cur, &fbno, &flen, cnt_cur 1620 fs/xfs/libxfs/xfs_alloc.c if ((error = xfs_alloc_lookup_eq(cnt_cur, bestfbno, bestflen, cnt_cur 1636 fs/xfs/libxfs/xfs_alloc.c xfs_btree_del_cursor(cnt_cur, XFS_BTREE_NOERROR); cnt_cur 1652 fs/xfs/libxfs/xfs_alloc.c if ((error = xfs_alloc_fixup_trees(cnt_cur, bno_cur, fbno, flen, cnt_cur 1655 fs/xfs/libxfs/xfs_alloc.c xfs_btree_del_cursor(cnt_cur, XFS_BTREE_NOERROR); cnt_cur 1657 fs/xfs/libxfs/xfs_alloc.c cnt_cur = bno_cur = NULL; cnt_cur 1669 fs/xfs/libxfs/xfs_alloc.c if (cnt_cur) cnt_cur 1670 fs/xfs/libxfs/xfs_alloc.c xfs_btree_del_cursor(cnt_cur, XFS_BTREE_ERROR); cnt_cur 1676 fs/xfs/libxfs/xfs_alloc.c xfs_btree_del_cursor(cnt_cur, XFS_BTREE_NOERROR); cnt_cur 1698 fs/xfs/libxfs/xfs_alloc.c struct xfs_btree_cur *cnt_cur; cnt_cur 1710 fs/xfs/libxfs/xfs_alloc.c bno_cur = cnt_cur = NULL; cnt_cur 1781 fs/xfs/libxfs/xfs_alloc.c cnt_cur = xfs_allocbt_init_cursor(mp, tp, agbp, agno, XFS_BTNUM_CNT); cnt_cur 1790 fs/xfs/libxfs/xfs_alloc.c if ((error = xfs_alloc_lookup_eq(cnt_cur, ltbno, ltlen, &i))) cnt_cur 1793 fs/xfs/libxfs/xfs_alloc.c if ((error = xfs_btree_delete(cnt_cur, &i))) cnt_cur 1799 fs/xfs/libxfs/xfs_alloc.c if ((error = xfs_alloc_lookup_eq(cnt_cur, gtbno, gtlen, &i))) cnt_cur 1802 fs/xfs/libxfs/xfs_alloc.c if ((error = xfs_btree_delete(cnt_cur, &i))) cnt_cur 1850 fs/xfs/libxfs/xfs_alloc.c if ((error = xfs_alloc_lookup_eq(cnt_cur, ltbno, ltlen, &i))) cnt_cur 1853 fs/xfs/libxfs/xfs_alloc.c if ((error = xfs_btree_delete(cnt_cur, &i))) cnt_cur 1876 fs/xfs/libxfs/xfs_alloc.c if ((error = xfs_alloc_lookup_eq(cnt_cur, gtbno, gtlen, &i))) cnt_cur 1879 fs/xfs/libxfs/xfs_alloc.c if ((error = xfs_btree_delete(cnt_cur, &i))) cnt_cur 1907 fs/xfs/libxfs/xfs_alloc.c if ((error = xfs_alloc_lookup_eq(cnt_cur, nbno, nlen, &i))) cnt_cur 1910 fs/xfs/libxfs/xfs_alloc.c if ((error = xfs_btree_insert(cnt_cur, &i))) cnt_cur 1913 fs/xfs/libxfs/xfs_alloc.c xfs_btree_del_cursor(cnt_cur, XFS_BTREE_NOERROR); cnt_cur 1914 fs/xfs/libxfs/xfs_alloc.c cnt_cur = NULL; cnt_cur 1937 fs/xfs/libxfs/xfs_alloc.c if (cnt_cur) cnt_cur 1938 fs/xfs/libxfs/xfs_alloc.c xfs_btree_del_cursor(cnt_cur, XFS_BTREE_ERROR); cnt_cur 387 fs/xfs/scrub/agheader.c if (!sc->sa.cnt_cur) cnt_cur 391 fs/xfs/scrub/agheader.c error = xfs_alloc_lookup_le(sc->sa.cnt_cur, 0, -1U, &have); cnt_cur 392 fs/xfs/scrub/agheader.c if (!xchk_should_check_xref(sc, &error, &sc->sa.cnt_cur)) cnt_cur 401 fs/xfs/scrub/agheader.c error = xfs_alloc_get_rec(sc->sa.cnt_cur, &agbno, &blocks, &have); cnt_cur 402 fs/xfs/scrub/agheader.c if (!xchk_should_check_xref(sc, &error, &sc->sa.cnt_cur)) cnt_cur 436 fs/xfs/scrub/agheader.c !sc->sa.bno_cur || !sc->sa.cnt_cur) cnt_cur 445 fs/xfs/scrub/agheader.c error = xfs_btree_count_blocks(sc->sa.cnt_cur, &blocks); cnt_cur 446 fs/xfs/scrub/agheader.c if (!xchk_should_check_xref(sc, &error, &sc->sa.cnt_cur)) cnt_cur 48 fs/xfs/scrub/alloc.c pcur = &sc->sa.cnt_cur; cnt_cur 122 fs/xfs/scrub/alloc.c cur = which == XFS_BTNUM_BNO ? sc->sa.bno_cur : sc->sa.cnt_cur; cnt_cur 441 fs/xfs/scrub/common.c if (sa->cnt_cur) cnt_cur 442 fs/xfs/scrub/common.c xfs_btree_del_cursor(sa->cnt_cur, XFS_BTREE_ERROR); cnt_cur 451 fs/xfs/scrub/common.c sa->cnt_cur = NULL; cnt_cur 476 fs/xfs/scrub/common.c sa->cnt_cur = xfs_allocbt_init_cursor(mp, sc->tp, sa->agf_bp, cnt_cur 478 fs/xfs/scrub/common.c if (!sa->cnt_cur) cnt_cur 49 fs/xfs/scrub/scrub.h struct xfs_btree_cur *cnt_cur;