Lines Matching refs:bno_cur
430 xfs_btree_cur_t *bno_cur, /* cursor for by-block btree */
471 if ((error = xfs_alloc_get_rec(bno_cur, &nfbno1, &nflen1, &i)))
480 if ((error = xfs_alloc_lookup_eq(bno_cur, fbno, flen, &i)))
487 if (bno_cur->bc_nlevels == 1 && cnt_cur->bc_nlevels == 1) {
491 bnoblock = XFS_BUF_TO_BLOCK(bno_cur->bc_bufs[0]);
559 if ((error = xfs_btree_delete(bno_cur, &i)))
567 if ((error = xfs_alloc_update(bno_cur, nfbno1, nflen1)))
574 if ((error = xfs_alloc_lookup_eq(bno_cur, nfbno2, nflen2, &i)))
578 if ((error = xfs_btree_insert(bno_cur, &i)))
1204 xfs_btree_cur_t *bno_cur;/* by block-number btree cursor */
1220 bno_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp,
1228 error = xfs_alloc_lookup_le(bno_cur, args->agbno, args->minlen, &i);
1237 error = xfs_alloc_get_rec(bno_cur, &fbno, &flen, &i);
1283 error = xfs_alloc_fixup_trees(cnt_cur, bno_cur, fbno, flen, args->agbno,
1290 xfs_btree_del_cursor(bno_cur, XFS_BTREE_NOERROR);
1299 xfs_btree_del_cursor(bno_cur, XFS_BTREE_NOERROR);
1305 xfs_btree_del_cursor(bno_cur, XFS_BTREE_ERROR);
1662 xfs_btree_cur_t *bno_cur; /* cursor for bno btree */
1679 bno_cur = NULL;
1840 bno_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp,
1842 if ((error = xfs_alloc_fixup_trees(cnt_cur, bno_cur, fbno, flen,
1846 xfs_btree_del_cursor(bno_cur, XFS_BTREE_NOERROR);
1847 cnt_cur = bno_cur = NULL;
1863 if (bno_cur)
1864 xfs_btree_del_cursor(bno_cur, XFS_BTREE_ERROR);
1888 struct xfs_btree_cur *bno_cur;
1901 bno_cur = cnt_cur = NULL;
1913 bno_cur = xfs_allocbt_init_cursor(mp, tp, agbp, agno, XFS_BTNUM_BNO);
1918 if ((error = xfs_alloc_lookup_le(bno_cur, bno, len, &haveleft)))
1924 if ((error = xfs_alloc_get_rec(bno_cur, <bno, <len, &i)))
1951 if ((error = xfs_btree_increment(bno_cur, 0, &haveright)))
1957 if ((error = xfs_alloc_get_rec(bno_cur, >bno, >len, &i)))
2022 if ((error = xfs_btree_delete(bno_cur, &i)))
2031 if ((error = xfs_btree_decrement(bno_cur, 0, &i)))
2046 if ((error = xfs_alloc_get_rec(bno_cur, &xxbno, &xxlen,
2063 if ((error = xfs_alloc_update(bno_cur, nbno, nlen)))
2090 if ((error = xfs_btree_decrement(bno_cur, 0, &i)))
2098 if ((error = xfs_alloc_update(bno_cur, nbno, nlen)))
2127 if ((error = xfs_alloc_update(bno_cur, nbno, nlen)))
2137 if ((error = xfs_btree_insert(bno_cur, &i)))
2144 xfs_btree_del_cursor(bno_cur, XFS_BTREE_NOERROR);
2145 bno_cur = NULL;
2181 if (bno_cur)
2182 xfs_btree_del_cursor(bno_cur, XFS_BTREE_ERROR);