Lines Matching refs:cur

30 	struct xfs_btree_cur	*cur)  in xfs_refcountbt_dup_cursor()  argument
32 return xfs_refcountbt_init_cursor(cur->bc_mp, cur->bc_tp, in xfs_refcountbt_dup_cursor()
33 cur->bc_ag.agbp, to_perag(cur->bc_group)); in xfs_refcountbt_dup_cursor()
38 struct xfs_btree_cur *cur, in xfs_refcountbt_set_root() argument
42 struct xfs_buf *agbp = cur->bc_ag.agbp; in xfs_refcountbt_set_root()
52 xfs_alloc_log_agf(cur->bc_tp, agbp, in xfs_refcountbt_set_root()
58 struct xfs_btree_cur *cur, in xfs_refcountbt_alloc_block() argument
63 struct xfs_buf *agbp = cur->bc_ag.agbp; in xfs_refcountbt_alloc_block()
69 args.tp = cur->bc_tp; in xfs_refcountbt_alloc_block()
70 args.mp = cur->bc_mp; in xfs_refcountbt_alloc_block()
71 args.pag = to_perag(cur->bc_group); in xfs_refcountbt_alloc_block()
84 ASSERT(args.agno == cur->bc_group->xg_gno); in xfs_refcountbt_alloc_block()
89 xfs_alloc_log_agf(cur->bc_tp, agbp, XFS_AGF_REFCOUNT_BLOCKS); in xfs_refcountbt_alloc_block()
100 struct xfs_btree_cur *cur, in xfs_refcountbt_free_block() argument
103 struct xfs_mount *mp = cur->bc_mp; in xfs_refcountbt_free_block()
104 struct xfs_buf *agbp = cur->bc_ag.agbp; in xfs_refcountbt_free_block()
109 xfs_alloc_log_agf(cur->bc_tp, agbp, XFS_AGF_REFCOUNT_BLOCKS); in xfs_refcountbt_free_block()
110 return xfs_free_extent_later(cur->bc_tp, fsbno, 1, in xfs_refcountbt_free_block()
116 struct xfs_btree_cur *cur, in xfs_refcountbt_get_minrecs() argument
119 return cur->bc_mp->m_refc_mnr[level != 0]; in xfs_refcountbt_get_minrecs()
124 struct xfs_btree_cur *cur, in xfs_refcountbt_get_maxrecs() argument
127 return cur->bc_mp->m_refc_mxr[level != 0]; in xfs_refcountbt_get_maxrecs()
152 struct xfs_btree_cur *cur, in xfs_refcountbt_init_rec_from_cur() argument
155 const struct xfs_refcount_irec *irec = &cur->bc_rec.rc; in xfs_refcountbt_init_rec_from_cur()
161 rec->refc.rc_blockcount = cpu_to_be32(cur->bc_rec.rc.rc_blockcount); in xfs_refcountbt_init_rec_from_cur()
162 rec->refc.rc_refcount = cpu_to_be32(cur->bc_rec.rc.rc_refcount); in xfs_refcountbt_init_rec_from_cur()
167 struct xfs_btree_cur *cur, in xfs_refcountbt_init_ptr_from_cur() argument
170 struct xfs_agf *agf = cur->bc_ag.agbp->b_addr; in xfs_refcountbt_init_ptr_from_cur()
172 ASSERT(cur->bc_group->xg_gno == be32_to_cpu(agf->agf_seqno)); in xfs_refcountbt_init_ptr_from_cur()
179 struct xfs_btree_cur *cur, in xfs_refcountbt_key_diff() argument
183 const struct xfs_refcount_irec *irec = &cur->bc_rec.rc; in xfs_refcountbt_key_diff()
193 struct xfs_btree_cur *cur, in xfs_refcountbt_diff_two_keys() argument
288 struct xfs_btree_cur *cur, in xfs_refcountbt_keys_inorder() argument
298 struct xfs_btree_cur *cur, in xfs_refcountbt_recs_inorder() argument
309 struct xfs_btree_cur *cur, in xfs_refcountbt_keys_contiguous() argument
362 struct xfs_btree_cur *cur; in xfs_refcountbt_init_cursor() local
366 cur = xfs_btree_alloc_cursor(mp, tp, &xfs_refcountbt_ops, in xfs_refcountbt_init_cursor()
368 cur->bc_group = xfs_group_hold(pag_group(pag)); in xfs_refcountbt_init_cursor()
369 cur->bc_refc.nr_ops = 0; in xfs_refcountbt_init_cursor()
370 cur->bc_refc.shape_changes = 0; in xfs_refcountbt_init_cursor()
371 cur->bc_ag.agbp = agbp; in xfs_refcountbt_init_cursor()
375 cur->bc_nlevels = be32_to_cpu(agf->agf_refcount_level); in xfs_refcountbt_init_cursor()
377 return cur; in xfs_refcountbt_init_cursor()
386 struct xfs_btree_cur *cur, in xfs_refcountbt_commit_staged_btree() argument
391 struct xbtree_afakeroot *afake = cur->bc_ag.afake; in xfs_refcountbt_commit_staged_btree()
393 ASSERT(cur->bc_flags & XFS_BTREE_STAGING); in xfs_refcountbt_commit_staged_btree()
401 xfs_btree_commit_afakeroot(cur, tp, agbp); in xfs_refcountbt_commit_staged_btree()