Lines Matching refs:cur

61 #define	XFS_ALLOC_BLOCK_SIZE(lev,cur)	(1 << (cur)->bc_blocklog)
62 #define XFS_ALLOC_BLOCK_MAXRECS(lev,cur) ((cur)->bc_mp->m_alloc_mxr[lev != 0])
63 #define XFS_ALLOC_BLOCK_MINRECS(lev,cur) ((cur)->bc_mp->m_alloc_mnr[lev != 0])
89 #define XFS_ALLOC_REC_ADDR(bb,i,cur) \
90 XFS_BTREE_REC_ADDR(XFS_ALLOC_BLOCK_SIZE(0,cur), xfs_alloc, \
91 bb, i, XFS_ALLOC_BLOCK_MAXRECS(0, cur))
93 #define XFS_ALLOC_KEY_ADDR(bb,i,cur) \
94 XFS_BTREE_KEY_ADDR(XFS_ALLOC_BLOCK_SIZE(1,cur), xfs_alloc, \
95 bb, i, XFS_ALLOC_BLOCK_MAXRECS(1, cur))
97 #define XFS_ALLOC_PTR_ADDR(bb,i,cur) \
98 XFS_BTREE_PTR_ADDR(XFS_ALLOC_BLOCK_SIZE(1,cur), xfs_alloc, \
99 bb, i, XFS_ALLOC_BLOCK_MAXRECS(1, cur))
105 extern int xfs_alloc_decrement(struct xfs_btree_cur *cur, int level, int *stat);
108 * Delete the record pointed to by cur.
112 extern int xfs_alloc_delete(struct xfs_btree_cur *cur, int *stat);
117 extern int xfs_alloc_get_rec(struct xfs_btree_cur *cur, xfs_agblock_t *bno,
124 extern int xfs_alloc_increment(struct xfs_btree_cur *cur, int level, int *stat);
127 * Insert the current record at the point referenced by cur.
130 extern int xfs_alloc_insert(struct xfs_btree_cur *cur, int *stat);
133 * Lookup the record equal to [bno, len] in the btree given by cur.
135 extern int xfs_alloc_lookup_eq(struct xfs_btree_cur *cur, xfs_agblock_t bno,
140 * in the btree given by cur.
142 extern int xfs_alloc_lookup_ge(struct xfs_btree_cur *cur, xfs_agblock_t bno,
147 * in the btree given by cur.
149 extern int xfs_alloc_lookup_le(struct xfs_btree_cur *cur, xfs_agblock_t bno,
153 * Update the record referred to by cur, to the value given by [bno, len].
156 extern int xfs_alloc_update(struct xfs_btree_cur *cur, xfs_agblock_t bno,