Lines Matching defs:bno_cur
475 struct xfs_btree_cur *bno_cur, /* cursor for by-block btree */
516 if ((error = xfs_alloc_get_rec(bno_cur, &nfbno1, &nflen1, &i)))
525 if ((error = xfs_alloc_lookup_eq(bno_cur, fbno, flen, &i)))
532 if (bno_cur->bc_nlevels == 1 && cnt_cur->bc_nlevels == 1) {
536 bnoblock = XFS_BUF_TO_BLOCK(bno_cur->bc_levels[0].bp);
604 if ((error = xfs_btree_delete(bno_cur, &i)))
612 if ((error = xfs_alloc_update(bno_cur, nfbno1, nflen1)))
619 if ((error = xfs_alloc_lookup_eq(bno_cur, nfbno2, nflen2, &i)))
623 if ((error = xfs_btree_insert(bno_cur, &i)))
1186 struct xfs_btree_cur *bno_cur;/* by block-number btree cursor */
1202 bno_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp,
1210 error = xfs_alloc_lookup_le(bno_cur, args->agbno, args->minlen, &i);
1219 error = xfs_alloc_get_rec(bno_cur, &fbno, &flen, &i);
1265 error = xfs_alloc_fixup_trees(cnt_cur, bno_cur, fbno, flen, args->agbno,
1272 xfs_btree_del_cursor(bno_cur, XFS_BTREE_NOERROR);
1281 xfs_btree_del_cursor(bno_cur, XFS_BTREE_NOERROR);
1287 xfs_btree_del_cursor(bno_cur, XFS_BTREE_ERROR);
1658 struct xfs_btree_cur *bno_cur;
1677 bno_cur = NULL;
1855 bno_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp,
1857 if ((error = xfs_alloc_fixup_trees(cnt_cur, bno_cur, fbno, flen,
1861 xfs_btree_del_cursor(bno_cur, XFS_BTREE_NOERROR);
1862 cnt_cur = bno_cur = NULL;
1878 if (bno_cur)
1879 xfs_btree_del_cursor(bno_cur, XFS_BTREE_ERROR);
1903 struct xfs_btree_cur *bno_cur;
1917 bno_cur = cnt_cur = NULL;
1929 bno_cur = xfs_allocbt_init_cursor(mp, tp, agbp, pag, XFS_BTNUM_BNO);
1934 if ((error = xfs_alloc_lookup_le(bno_cur, bno, len, &haveleft)))
1940 if ((error = xfs_alloc_get_rec(bno_cur, <bno, <len, &i)))
1967 if ((error = xfs_btree_increment(bno_cur, 0, &haveright)))
1973 if ((error = xfs_alloc_get_rec(bno_cur, >bno, >len, &i)))
2038 if ((error = xfs_btree_delete(bno_cur, &i)))
2047 if ((error = xfs_btree_decrement(bno_cur, 0, &i)))
2062 if ((error = xfs_alloc_get_rec(bno_cur, &xxbno, &xxlen,
2079 if ((error = xfs_alloc_update(bno_cur, nbno, nlen)))
2106 if ((error = xfs_btree_decrement(bno_cur, 0, &i)))
2114 if ((error = xfs_alloc_update(bno_cur, nbno, nlen)))
2143 if ((error = xfs_alloc_update(bno_cur, nbno, nlen)))
2153 if ((error = xfs_btree_insert(bno_cur, &i)))
2160 xfs_btree_del_cursor(bno_cur, XFS_BTREE_NOERROR);
2161 bno_cur = NULL;
2197 if (bno_cur)
2198 xfs_btree_del_cursor(bno_cur, XFS_BTREE_ERROR);