Lines Matching refs:xfbt

70 	struct xfbtree		*xfbt)  in xfbtree_destroy()  argument
72 xfs_buftarg_drain(xfbt->target); in xfbtree_destroy()
88 struct xfbtree *xfbt, in xfbtree_init_leaf_block() argument
92 xfbno_t bno = xfbt->highest_bno++; in xfbtree_init_leaf_block()
95 error = xfs_buf_get(xfbt->target, xfbno_to_daddr(bno), XFBNO_BBSIZE, in xfbtree_init_leaf_block()
100 trace_xfbtree_create_root_buf(xfbt, bp); in xfbtree_init_leaf_block()
103 xfs_btree_init_buf(mp, bp, ops, 0, 0, xfbt->owner); in xfbtree_init_leaf_block()
106 xfbt->root.l = cpu_to_be64(bno); in xfbtree_init_leaf_block()
117 struct xfbtree *xfbt, in xfbtree_init() argument
135 memset(xfbt, 0, sizeof(*xfbt)); in xfbtree_init()
136 xfbt->target = btp; in xfbtree_init()
140 xfbt->maxrecs[0] = blocklen / ops->rec_len; in xfbtree_init()
141 xfbt->maxrecs[1] = blocklen / keyptr_len; in xfbtree_init()
142 xfbt->minrecs[0] = xfbt->maxrecs[0] / 2; in xfbtree_init()
143 xfbt->minrecs[1] = xfbt->maxrecs[1] / 2; in xfbtree_init()
144 xfbt->highest_bno = 0; in xfbtree_init()
145 xfbt->nlevels = 1; in xfbtree_init()
148 error = xfbtree_init_leaf_block(mp, xfbt, ops); in xfbtree_init()
152 trace_xfbtree_init(mp, xfbt, ops); in xfbtree_init()
157 xfs_buftarg_drain(xfbt->target); in xfbtree_init()
169 struct xfbtree *xfbt = cur->bc_mem.xfbtree; in xfbtree_alloc_block() local
170 xfbno_t bno = xfbt->highest_bno++; in xfbtree_alloc_block()
174 trace_xfbtree_alloc_block(xfbt, cur, bno); in xfbtree_alloc_block()
177 if (!xfbtree_verify_bno(xfbt, bno)) { in xfbtree_alloc_block()
178 ASSERT(xfbtree_verify_bno(xfbt, bno)); in xfbtree_alloc_block()
194 struct xfbtree *xfbt = cur->bc_mem.xfbtree; in xfbtree_free_block() local
200 trace_xfbtree_free_block(xfbt, cur, bno); in xfbtree_free_block()
202 if (bno + 1 == xfbt->highest_bno) in xfbtree_free_block()
203 xfbt->highest_bno--; in xfbtree_free_block()
214 struct xfbtree *xfbt = cur->bc_mem.xfbtree; in xfbtree_get_minrecs() local
216 return xfbt->minrecs[level != 0]; in xfbtree_get_minrecs()
225 struct xfbtree *xfbt = cur->bc_mem.xfbtree; in xfbtree_get_maxrecs() local
227 return xfbt->maxrecs[level != 0]; in xfbtree_get_maxrecs()
233 struct xfbtree *xfbt, in xfbtree_buf_match() argument
244 if (bp->b_target != xfbt->target) in xfbtree_buf_match()
269 struct xfbtree *xfbt, in xfbtree_trans_commit() argument
281 struct xfs_buf *bp = xfbtree_buf_match(xfbt, lip); in xfbtree_trans_commit()
289 trace_xfbtree_trans_commit_buf(xfbt, bp); in xfbtree_trans_commit()
320 struct xfbtree *xfbt, in xfbtree_trans_cancel() argument
327 struct xfs_buf *bp = xfbtree_buf_match(xfbt, lip); in xfbtree_trans_cancel()
335 trace_xfbtree_trans_cancel_buf(xfbt, bp); in xfbtree_trans_cancel()