Lines Matching refs:bno_cur
321 xfs_btree_cur_t *bno_cur, /* cursor for by-block btree */ in xfs_alloc_fixup_trees() argument
358 if ((error = xfs_alloc_get_rec(bno_cur, &nfbno1, &nflen1, &i))) in xfs_alloc_fixup_trees()
364 if ((error = xfs_alloc_lookup_eq(bno_cur, fbno, flen, &i))) in xfs_alloc_fixup_trees()
370 if (bno_cur->bc_nlevels == 1 && cnt_cur->bc_nlevels == 1) { in xfs_alloc_fixup_trees()
374 bnoblock = XFS_BUF_TO_BLOCK(bno_cur->bc_bufs[0]); in xfs_alloc_fixup_trees()
435 if ((error = xfs_btree_delete(bno_cur, &i))) in xfs_alloc_fixup_trees()
442 if ((error = xfs_alloc_update(bno_cur, nfbno1, nflen1))) in xfs_alloc_fixup_trees()
449 if ((error = xfs_alloc_lookup_eq(bno_cur, nfbno2, nflen2, &i))) in xfs_alloc_fixup_trees()
452 if ((error = xfs_btree_insert(bno_cur, &i))) in xfs_alloc_fixup_trees()
672 xfs_btree_cur_t *bno_cur;/* by block-number btree cursor */ in xfs_alloc_ag_vextent_exact() local
687 bno_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp, in xfs_alloc_ag_vextent_exact()
695 error = xfs_alloc_lookup_le(bno_cur, args->agbno, args->minlen, &i); in xfs_alloc_ag_vextent_exact()
704 error = xfs_alloc_get_rec(bno_cur, &fbno, &flen, &i); in xfs_alloc_ag_vextent_exact()
749 error = xfs_alloc_fixup_trees(cnt_cur, bno_cur, fbno, flen, args->agbno, in xfs_alloc_ag_vextent_exact()
756 xfs_btree_del_cursor(bno_cur, XFS_BTREE_NOERROR); in xfs_alloc_ag_vextent_exact()
765 xfs_btree_del_cursor(bno_cur, XFS_BTREE_NOERROR); in xfs_alloc_ag_vextent_exact()
771 xfs_btree_del_cursor(bno_cur, XFS_BTREE_ERROR); in xfs_alloc_ag_vextent_exact()
1290 xfs_btree_cur_t *bno_cur; /* cursor for bno btree */ in xfs_alloc_ag_vextent_size() local
1306 bno_cur = NULL; in xfs_alloc_ag_vextent_size()
1455 bno_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp, in xfs_alloc_ag_vextent_size()
1457 if ((error = xfs_alloc_fixup_trees(cnt_cur, bno_cur, fbno, flen, in xfs_alloc_ag_vextent_size()
1461 xfs_btree_del_cursor(bno_cur, XFS_BTREE_NOERROR); in xfs_alloc_ag_vextent_size()
1462 cnt_cur = bno_cur = NULL; in xfs_alloc_ag_vextent_size()
1476 if (bno_cur) in xfs_alloc_ag_vextent_size()
1477 xfs_btree_del_cursor(bno_cur, XFS_BTREE_ERROR); in xfs_alloc_ag_vextent_size()
1589 xfs_btree_cur_t *bno_cur; /* cursor for by-block btree */ in xfs_free_ag_extent() local
1608 bno_cur = xfs_allocbt_init_cursor(mp, tp, agbp, agno, XFS_BTNUM_BNO); in xfs_free_ag_extent()
1614 if ((error = xfs_alloc_lookup_le(bno_cur, bno, len, &haveleft))) in xfs_free_ag_extent()
1620 if ((error = xfs_alloc_get_rec(bno_cur, <bno, <len, &i))) in xfs_free_ag_extent()
1642 if ((error = xfs_btree_increment(bno_cur, 0, &haveright))) in xfs_free_ag_extent()
1648 if ((error = xfs_alloc_get_rec(bno_cur, >bno, >len, &i))) in xfs_free_ag_extent()
1695 if ((error = xfs_btree_delete(bno_cur, &i))) in xfs_free_ag_extent()
1701 if ((error = xfs_btree_decrement(bno_cur, 0, &i))) in xfs_free_ag_extent()
1713 if ((error = xfs_alloc_get_rec(bno_cur, &xxbno, &xxlen, in xfs_free_ag_extent()
1726 if ((error = xfs_alloc_update(bno_cur, nbno, nlen))) in xfs_free_ag_extent()
1747 if ((error = xfs_btree_decrement(bno_cur, 0, &i))) in xfs_free_ag_extent()
1752 if ((error = xfs_alloc_update(bno_cur, nbno, nlen))) in xfs_free_ag_extent()
1775 if ((error = xfs_alloc_update(bno_cur, nbno, nlen))) in xfs_free_ag_extent()
1785 if ((error = xfs_btree_insert(bno_cur, &i))) in xfs_free_ag_extent()
1789 xfs_btree_del_cursor(bno_cur, XFS_BTREE_NOERROR); in xfs_free_ag_extent()
1790 bno_cur = NULL; in xfs_free_ag_extent()
1823 if (bno_cur) in xfs_free_ag_extent()
1824 xfs_btree_del_cursor(bno_cur, XFS_BTREE_ERROR); in xfs_free_ag_extent()