Lines Matching refs:bno_cur
307 xfs_btree_cur_t *bno_cur, /* cursor for by-block btree */ in xfs_alloc_fixup_trees() argument
344 if ((error = xfs_alloc_get_rec(bno_cur, &nfbno1, &nflen1, &i))) in xfs_alloc_fixup_trees()
350 if ((error = xfs_alloc_lookup_eq(bno_cur, fbno, flen, &i))) in xfs_alloc_fixup_trees()
356 if (bno_cur->bc_nlevels == 1 && cnt_cur->bc_nlevels == 1) { in xfs_alloc_fixup_trees()
360 bnoblock = XFS_BUF_TO_BLOCK(bno_cur->bc_bufs[0]); in xfs_alloc_fixup_trees()
421 if ((error = xfs_btree_delete(bno_cur, &i))) in xfs_alloc_fixup_trees()
428 if ((error = xfs_alloc_update(bno_cur, nfbno1, nflen1))) in xfs_alloc_fixup_trees()
435 if ((error = xfs_alloc_lookup_eq(bno_cur, nfbno2, nflen2, &i))) in xfs_alloc_fixup_trees()
438 if ((error = xfs_btree_insert(bno_cur, &i))) in xfs_alloc_fixup_trees()
655 xfs_btree_cur_t *bno_cur;/* by block-number btree cursor */ in xfs_alloc_ag_vextent_exact() local
670 bno_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp, in xfs_alloc_ag_vextent_exact()
678 error = xfs_alloc_lookup_le(bno_cur, args->agbno, args->minlen, &i); in xfs_alloc_ag_vextent_exact()
687 error = xfs_alloc_get_rec(bno_cur, &fbno, &flen, &i); in xfs_alloc_ag_vextent_exact()
732 error = xfs_alloc_fixup_trees(cnt_cur, bno_cur, fbno, flen, args->agbno, in xfs_alloc_ag_vextent_exact()
739 xfs_btree_del_cursor(bno_cur, XFS_BTREE_NOERROR); in xfs_alloc_ag_vextent_exact()
748 xfs_btree_del_cursor(bno_cur, XFS_BTREE_NOERROR); in xfs_alloc_ag_vextent_exact()
754 xfs_btree_del_cursor(bno_cur, XFS_BTREE_ERROR); in xfs_alloc_ag_vextent_exact()
1255 xfs_btree_cur_t *bno_cur; /* cursor for bno btree */ in xfs_alloc_ag_vextent_size() local
1271 bno_cur = NULL; in xfs_alloc_ag_vextent_size()
1420 bno_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp, in xfs_alloc_ag_vextent_size()
1422 if ((error = xfs_alloc_fixup_trees(cnt_cur, bno_cur, fbno, flen, in xfs_alloc_ag_vextent_size()
1426 xfs_btree_del_cursor(bno_cur, XFS_BTREE_NOERROR); in xfs_alloc_ag_vextent_size()
1427 cnt_cur = bno_cur = NULL; in xfs_alloc_ag_vextent_size()
1441 if (bno_cur) in xfs_alloc_ag_vextent_size()
1442 xfs_btree_del_cursor(bno_cur, XFS_BTREE_ERROR); in xfs_alloc_ag_vextent_size()
1554 xfs_btree_cur_t *bno_cur; /* cursor for by-block btree */ in xfs_free_ag_extent() local
1573 bno_cur = xfs_allocbt_init_cursor(mp, tp, agbp, agno, XFS_BTNUM_BNO); in xfs_free_ag_extent()
1579 if ((error = xfs_alloc_lookup_le(bno_cur, bno, len, &haveleft))) in xfs_free_ag_extent()
1585 if ((error = xfs_alloc_get_rec(bno_cur, <bno, <len, &i))) in xfs_free_ag_extent()
1607 if ((error = xfs_btree_increment(bno_cur, 0, &haveright))) in xfs_free_ag_extent()
1613 if ((error = xfs_alloc_get_rec(bno_cur, >bno, >len, &i))) in xfs_free_ag_extent()
1660 if ((error = xfs_btree_delete(bno_cur, &i))) in xfs_free_ag_extent()
1666 if ((error = xfs_btree_decrement(bno_cur, 0, &i))) in xfs_free_ag_extent()
1678 if ((error = xfs_alloc_get_rec(bno_cur, &xxbno, &xxlen, in xfs_free_ag_extent()
1691 if ((error = xfs_alloc_update(bno_cur, nbno, nlen))) in xfs_free_ag_extent()
1712 if ((error = xfs_btree_decrement(bno_cur, 0, &i))) in xfs_free_ag_extent()
1717 if ((error = xfs_alloc_update(bno_cur, nbno, nlen))) in xfs_free_ag_extent()
1740 if ((error = xfs_alloc_update(bno_cur, nbno, nlen))) in xfs_free_ag_extent()
1750 if ((error = xfs_btree_insert(bno_cur, &i))) in xfs_free_ag_extent()
1754 xfs_btree_del_cursor(bno_cur, XFS_BTREE_NOERROR); in xfs_free_ag_extent()
1755 bno_cur = NULL; in xfs_free_ag_extent()
1788 if (bno_cur) in xfs_free_ag_extent()
1789 xfs_btree_del_cursor(bno_cur, XFS_BTREE_ERROR); in xfs_free_ag_extent()