Lines Matching refs:bno_cur

570 	struct xfs_btree_cur *bno_cur,	/* cursor for by-block btree */  in xfs_alloc_fixup_trees()  argument
616 if ((error = xfs_alloc_get_rec(bno_cur, &nfbno1, &nflen1, &i))) in xfs_alloc_fixup_trees()
622 xfs_btree_mark_sick(bno_cur); in xfs_alloc_fixup_trees()
627 if ((error = xfs_alloc_lookup_eq(bno_cur, fbno, flen, &i))) in xfs_alloc_fixup_trees()
630 xfs_btree_mark_sick(bno_cur); in xfs_alloc_fixup_trees()
636 if (bno_cur->bc_nlevels == 1 && cnt_cur->bc_nlevels == 1) { in xfs_alloc_fixup_trees()
640 bnoblock = XFS_BUF_TO_BLOCK(bno_cur->bc_levels[0].bp); in xfs_alloc_fixup_trees()
646 xfs_btree_mark_sick(bno_cur); in xfs_alloc_fixup_trees()
724 if ((error = xfs_btree_delete(bno_cur, &i))) in xfs_alloc_fixup_trees()
727 xfs_btree_mark_sick(bno_cur); in xfs_alloc_fixup_trees()
734 if ((error = xfs_alloc_update(bno_cur, nfbno1, nflen1))) in xfs_alloc_fixup_trees()
741 if ((error = xfs_alloc_lookup_eq(bno_cur, nfbno2, nflen2, &i))) in xfs_alloc_fixup_trees()
744 xfs_btree_mark_sick(bno_cur); in xfs_alloc_fixup_trees()
747 if ((error = xfs_btree_insert(bno_cur, &i))) in xfs_alloc_fixup_trees()
750 xfs_btree_mark_sick(bno_cur); in xfs_alloc_fixup_trees()
1320 struct xfs_btree_cur *bno_cur;/* by block-number btree cursor */ in xfs_alloc_ag_vextent_exact() local
1336 bno_cur = xfs_bnobt_init_cursor(args->mp, args->tp, args->agbp, in xfs_alloc_ag_vextent_exact()
1344 error = xfs_alloc_lookup_le(bno_cur, args->agbno, args->minlen, &i); in xfs_alloc_ag_vextent_exact()
1353 error = xfs_alloc_get_rec(bno_cur, &fbno, &flen, &i); in xfs_alloc_ag_vextent_exact()
1357 xfs_btree_mark_sick(bno_cur); in xfs_alloc_ag_vextent_exact()
1400 error = xfs_alloc_fixup_trees(cnt_cur, bno_cur, fbno, flen, args->agbno, in xfs_alloc_ag_vextent_exact()
1407 xfs_btree_del_cursor(bno_cur, XFS_BTREE_NOERROR); in xfs_alloc_ag_vextent_exact()
1416 xfs_btree_del_cursor(bno_cur, XFS_BTREE_NOERROR); in xfs_alloc_ag_vextent_exact()
1422 xfs_btree_del_cursor(bno_cur, XFS_BTREE_ERROR); in xfs_alloc_ag_vextent_exact()
1795 struct xfs_btree_cur *bno_cur; in xfs_alloc_ag_vextent_size() local
1814 bno_cur = NULL; in xfs_alloc_ag_vextent_size()
1998 bno_cur = xfs_bnobt_init_cursor(args->mp, args->tp, args->agbp, in xfs_alloc_ag_vextent_size()
2000 if ((error = xfs_alloc_fixup_trees(cnt_cur, bno_cur, fbno, flen, in xfs_alloc_ag_vextent_size()
2004 xfs_btree_del_cursor(bno_cur, XFS_BTREE_NOERROR); in xfs_alloc_ag_vextent_size()
2005 cnt_cur = bno_cur = NULL; in xfs_alloc_ag_vextent_size()
2022 if (bno_cur) in xfs_alloc_ag_vextent_size()
2023 xfs_btree_del_cursor(bno_cur, XFS_BTREE_ERROR); in xfs_alloc_ag_vextent_size()
2047 struct xfs_btree_cur *bno_cur; in xfs_free_ag_extent() local
2062 bno_cur = cnt_cur = NULL; in xfs_free_ag_extent()
2074 bno_cur = xfs_bnobt_init_cursor(mp, tp, agbp, pag); in xfs_free_ag_extent()
2079 if ((error = xfs_alloc_lookup_le(bno_cur, bno, len, &haveleft))) in xfs_free_ag_extent()
2085 if ((error = xfs_alloc_get_rec(bno_cur, &ltbno, &ltlen, &i))) in xfs_free_ag_extent()
2088 xfs_btree_mark_sick(bno_cur); in xfs_free_ag_extent()
2104 xfs_btree_mark_sick(bno_cur); in xfs_free_ag_extent()
2114 if ((error = xfs_btree_increment(bno_cur, 0, &haveright))) in xfs_free_ag_extent()
2120 if ((error = xfs_alloc_get_rec(bno_cur, &gtbno, &gtlen, &i))) in xfs_free_ag_extent()
2123 xfs_btree_mark_sick(bno_cur); in xfs_free_ag_extent()
2139 xfs_btree_mark_sick(bno_cur); in xfs_free_ag_extent()
2191 if ((error = xfs_btree_delete(bno_cur, &i))) in xfs_free_ag_extent()
2194 xfs_btree_mark_sick(bno_cur); in xfs_free_ag_extent()
2201 if ((error = xfs_btree_decrement(bno_cur, 0, &i))) in xfs_free_ag_extent()
2204 xfs_btree_mark_sick(bno_cur); in xfs_free_ag_extent()
2217 if ((error = xfs_alloc_get_rec(bno_cur, &xxbno, &xxlen, in xfs_free_ag_extent()
2224 xfs_btree_mark_sick(bno_cur); in xfs_free_ag_extent()
2235 if ((error = xfs_alloc_update(bno_cur, nbno, nlen))) in xfs_free_ag_extent()
2264 if ((error = xfs_btree_decrement(bno_cur, 0, &i))) in xfs_free_ag_extent()
2267 xfs_btree_mark_sick(bno_cur); in xfs_free_ag_extent()
2273 if ((error = xfs_alloc_update(bno_cur, nbno, nlen))) in xfs_free_ag_extent()
2304 if ((error = xfs_alloc_update(bno_cur, nbno, nlen))) in xfs_free_ag_extent()
2314 if ((error = xfs_btree_insert(bno_cur, &i))) in xfs_free_ag_extent()
2317 xfs_btree_mark_sick(bno_cur); in xfs_free_ag_extent()
2322 xfs_btree_del_cursor(bno_cur, XFS_BTREE_NOERROR); in xfs_free_ag_extent()
2323 bno_cur = NULL; in xfs_free_ag_extent()
2374 if (bno_cur) in xfs_free_ag_extent()
2375 xfs_btree_del_cursor(bno_cur, XFS_BTREE_ERROR); in xfs_free_ag_extent()