Lines Matching refs:bno_cur
309 xfs_btree_cur_t *bno_cur, /* cursor for by-block btree */
343 if ((error = xfs_alloc_get_rec(bno_cur, &nfbno1, &nflen1, &i)))
349 if ((error = xfs_alloc_lookup_eq(bno_cur, fbno, flen, &i)))
355 if (bno_cur->bc_nlevels == 1 && cnt_cur->bc_nlevels == 1) {
359 bnoblock = XFS_BUF_TO_BLOCK(bno_cur->bc_bufs[0]);
420 if ((error = xfs_btree_delete(bno_cur, &i)))
427 if ((error = xfs_alloc_update(bno_cur, nfbno1, nflen1)))
434 if ((error = xfs_alloc_lookup_eq(bno_cur, nfbno2, nflen2, &i)))
437 if ((error = xfs_btree_insert(bno_cur, &i)))
567 xfs_btree_cur_t *bno_cur;/* by block-number btree cursor */
583 bno_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp,
590 if ((error = xfs_alloc_lookup_le(bno_cur, args->agbno, args->minlen, &i)))
596 xfs_btree_del_cursor(bno_cur, XFS_BTREE_NOERROR);
603 if ((error = xfs_alloc_get_rec(bno_cur, &fbno, &flen, &i)))
614 xfs_btree_del_cursor(bno_cur, XFS_BTREE_NOERROR);
629 xfs_btree_del_cursor(bno_cur, XFS_BTREE_NOERROR);
643 if ((error = xfs_alloc_fixup_trees(cnt_cur, bno_cur, fbno, flen,
648 xfs_btree_del_cursor(bno_cur, XFS_BTREE_NOERROR);
656 xfs_btree_del_cursor(bno_cur, XFS_BTREE_ERROR);
1201 xfs_btree_cur_t *bno_cur; /* cursor for bno btree */
1215 bno_cur = NULL;
1318 bno_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp,
1320 if ((error = xfs_alloc_fixup_trees(cnt_cur, bno_cur, fbno, flen,
1324 xfs_btree_del_cursor(bno_cur, XFS_BTREE_NOERROR);
1325 cnt_cur = bno_cur = NULL;
1339 if (bno_cur)
1340 xfs_btree_del_cursor(bno_cur, XFS_BTREE_ERROR);
1443 xfs_btree_cur_t *bno_cur; /* cursor for by-block btree */
1461 bno_cur = xfs_allocbt_init_cursor(mp, tp, agbp, agno, XFS_BTNUM_BNO);
1467 if ((error = xfs_alloc_lookup_le(bno_cur, bno, len, &haveleft)))
1473 if ((error = xfs_alloc_get_rec(bno_cur, <bno, <len, &i)))
1494 if ((error = xfs_btree_increment(bno_cur, 0, &haveright)))
1500 if ((error = xfs_alloc_get_rec(bno_cur, >bno, >len, &i)))
1547 if ((error = xfs_btree_delete(bno_cur, &i)))
1553 if ((error = xfs_btree_decrement(bno_cur, 0, &i)))
1565 if ((error = xfs_alloc_get_rec(bno_cur, &xxbno, &xxlen,
1578 if ((error = xfs_alloc_update(bno_cur, nbno, nlen)))
1599 if ((error = xfs_btree_decrement(bno_cur, 0, &i)))
1604 if ((error = xfs_alloc_update(bno_cur, nbno, nlen)))
1627 if ((error = xfs_alloc_update(bno_cur, nbno, nlen)))
1637 if ((error = xfs_btree_insert(bno_cur, &i)))
1641 xfs_btree_del_cursor(bno_cur, XFS_BTREE_NOERROR);
1642 bno_cur = NULL;
1697 if (bno_cur)
1698 xfs_btree_del_cursor(bno_cur, XFS_BTREE_ERROR);