Lines Matching refs:bno_cur

445 	struct xfs_btree_cur *bno_cur,	/* cursor for by-block btree */  in xfs_alloc_fixup_trees()  argument
486 if ((error = xfs_alloc_get_rec(bno_cur, &nfbno1, &nflen1, &i))) in xfs_alloc_fixup_trees()
495 if ((error = xfs_alloc_lookup_eq(bno_cur, fbno, flen, &i))) in xfs_alloc_fixup_trees()
502 if (bno_cur->bc_nlevels == 1 && cnt_cur->bc_nlevels == 1) { in xfs_alloc_fixup_trees()
506 bnoblock = XFS_BUF_TO_BLOCK(bno_cur->bc_levels[0].bp); in xfs_alloc_fixup_trees()
574 if ((error = xfs_btree_delete(bno_cur, &i))) in xfs_alloc_fixup_trees()
582 if ((error = xfs_alloc_update(bno_cur, nfbno1, nflen1))) in xfs_alloc_fixup_trees()
589 if ((error = xfs_alloc_lookup_eq(bno_cur, nfbno2, nflen2, &i))) in xfs_alloc_fixup_trees()
593 if ((error = xfs_btree_insert(bno_cur, &i))) in xfs_alloc_fixup_trees()
1218 struct xfs_btree_cur *bno_cur;/* by block-number btree cursor */ in xfs_alloc_ag_vextent_exact() local
1234 bno_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp, in xfs_alloc_ag_vextent_exact()
1242 error = xfs_alloc_lookup_le(bno_cur, args->agbno, args->minlen, &i); in xfs_alloc_ag_vextent_exact()
1251 error = xfs_alloc_get_rec(bno_cur, &fbno, &flen, &i); in xfs_alloc_ag_vextent_exact()
1297 error = xfs_alloc_fixup_trees(cnt_cur, bno_cur, fbno, flen, args->agbno, in xfs_alloc_ag_vextent_exact()
1304 xfs_btree_del_cursor(bno_cur, XFS_BTREE_NOERROR); in xfs_alloc_ag_vextent_exact()
1313 xfs_btree_del_cursor(bno_cur, XFS_BTREE_NOERROR); in xfs_alloc_ag_vextent_exact()
1319 xfs_btree_del_cursor(bno_cur, XFS_BTREE_ERROR); in xfs_alloc_ag_vextent_exact()
1676 struct xfs_btree_cur *bno_cur; /* cursor for bno btree */ in xfs_alloc_ag_vextent_size() local
1693 bno_cur = NULL; in xfs_alloc_ag_vextent_size()
1853 bno_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp, in xfs_alloc_ag_vextent_size()
1855 if ((error = xfs_alloc_fixup_trees(cnt_cur, bno_cur, fbno, flen, in xfs_alloc_ag_vextent_size()
1859 xfs_btree_del_cursor(bno_cur, XFS_BTREE_NOERROR); in xfs_alloc_ag_vextent_size()
1860 cnt_cur = bno_cur = NULL; in xfs_alloc_ag_vextent_size()
1876 if (bno_cur) in xfs_alloc_ag_vextent_size()
1877 xfs_btree_del_cursor(bno_cur, XFS_BTREE_ERROR); in xfs_alloc_ag_vextent_size()
1901 struct xfs_btree_cur *bno_cur; in xfs_free_ag_extent() local
1915 bno_cur = cnt_cur = NULL; in xfs_free_ag_extent()
1927 bno_cur = xfs_allocbt_init_cursor(mp, tp, agbp, pag, XFS_BTNUM_BNO); in xfs_free_ag_extent()
1932 if ((error = xfs_alloc_lookup_le(bno_cur, bno, len, &haveleft))) in xfs_free_ag_extent()
1938 if ((error = xfs_alloc_get_rec(bno_cur, &ltbno, &ltlen, &i))) in xfs_free_ag_extent()
1965 if ((error = xfs_btree_increment(bno_cur, 0, &haveright))) in xfs_free_ag_extent()
1971 if ((error = xfs_alloc_get_rec(bno_cur, &gtbno, &gtlen, &i))) in xfs_free_ag_extent()
2036 if ((error = xfs_btree_delete(bno_cur, &i))) in xfs_free_ag_extent()
2045 if ((error = xfs_btree_decrement(bno_cur, 0, &i))) in xfs_free_ag_extent()
2060 if ((error = xfs_alloc_get_rec(bno_cur, &xxbno, &xxlen, in xfs_free_ag_extent()
2077 if ((error = xfs_alloc_update(bno_cur, nbno, nlen))) in xfs_free_ag_extent()
2104 if ((error = xfs_btree_decrement(bno_cur, 0, &i))) in xfs_free_ag_extent()
2112 if ((error = xfs_alloc_update(bno_cur, nbno, nlen))) in xfs_free_ag_extent()
2141 if ((error = xfs_alloc_update(bno_cur, nbno, nlen))) in xfs_free_ag_extent()
2151 if ((error = xfs_btree_insert(bno_cur, &i))) in xfs_free_ag_extent()
2158 xfs_btree_del_cursor(bno_cur, XFS_BTREE_NOERROR); in xfs_free_ag_extent()
2159 bno_cur = NULL; in xfs_free_ag_extent()
2195 if (bno_cur) in xfs_free_ag_extent()
2196 xfs_btree_del_cursor(bno_cur, XFS_BTREE_ERROR); in xfs_free_ag_extent()