@@ -370,7 +370,7 @@ xfbtree_rec_bytes(
{
unsigned int blocklen = xfo_to_b(1);
- if (cfg->flags & XFBTREE_CREATE_LONG_PTRS) {
+ if (cfg->btree_ops->geom_flags & XFS_BTREE_LONG_PTRS) {
if (xfs_has_crc(mp))
return blocklen - XFS_BTREE_LBLOCK_CRC_LEN;
@@ -464,7 +464,7 @@ xfbtree_create(
goto err_buftarg;
/* Set up min/maxrecs for this btree. */
- if (cfg->flags & XFBTREE_CREATE_LONG_PTRS)
+ if (cfg->btree_ops->geom_flags & XFS_BTREE_LONG_PTRS)
keyptr_len += sizeof(__be64);
else
keyptr_len += sizeof(__be32);
@@ -17,17 +17,8 @@ struct xfbtree_config {
/* Owner of this btree. */
unsigned long long owner;
-
- /* Btree type number */
- xfs_btnum_t btnum;
-
- /* XFBTREE_CREATE_* flags */
- unsigned int flags;
};
-/* btree has long pointers */
-#define XFBTREE_CREATE_LONG_PTRS (1U << 0)
-
#ifdef CONFIG_XFS_BTREE_IN_XFILE
unsigned int xfs_btree_mem_head_nlevels(struct xfs_buf *head_bp);
@@ -667,7 +667,6 @@ xfs_rmapbt_mem_create(
struct xfbtree_config cfg = {
.btree_ops = &xfs_rmapbt_mem_ops,
.target = target,
- .btnum = XFS_BTNUM_RMAP,
.owner = agno,
};