|
@@ -302,7 +302,6 @@ const struct xfs_buf_ops xfs_inobt_buf_ops = {
|
|
.verify_write = xfs_inobt_write_verify,
|
|
.verify_write = xfs_inobt_write_verify,
|
|
};
|
|
};
|
|
|
|
|
|
-#if defined(DEBUG) || defined(XFS_WARN)
|
|
|
|
STATIC int
|
|
STATIC int
|
|
xfs_inobt_keys_inorder(
|
|
xfs_inobt_keys_inorder(
|
|
struct xfs_btree_cur *cur,
|
|
struct xfs_btree_cur *cur,
|
|
@@ -322,7 +321,6 @@ xfs_inobt_recs_inorder(
|
|
return be32_to_cpu(r1->inobt.ir_startino) + XFS_INODES_PER_CHUNK <=
|
|
return be32_to_cpu(r1->inobt.ir_startino) + XFS_INODES_PER_CHUNK <=
|
|
be32_to_cpu(r2->inobt.ir_startino);
|
|
be32_to_cpu(r2->inobt.ir_startino);
|
|
}
|
|
}
|
|
-#endif /* DEBUG */
|
|
|
|
|
|
|
|
static const struct xfs_btree_ops xfs_inobt_ops = {
|
|
static const struct xfs_btree_ops xfs_inobt_ops = {
|
|
.rec_len = sizeof(xfs_inobt_rec_t),
|
|
.rec_len = sizeof(xfs_inobt_rec_t),
|
|
@@ -339,10 +337,8 @@ static const struct xfs_btree_ops xfs_inobt_ops = {
|
|
.init_ptr_from_cur = xfs_inobt_init_ptr_from_cur,
|
|
.init_ptr_from_cur = xfs_inobt_init_ptr_from_cur,
|
|
.key_diff = xfs_inobt_key_diff,
|
|
.key_diff = xfs_inobt_key_diff,
|
|
.buf_ops = &xfs_inobt_buf_ops,
|
|
.buf_ops = &xfs_inobt_buf_ops,
|
|
-#if defined(DEBUG) || defined(XFS_WARN)
|
|
|
|
.keys_inorder = xfs_inobt_keys_inorder,
|
|
.keys_inorder = xfs_inobt_keys_inorder,
|
|
.recs_inorder = xfs_inobt_recs_inorder,
|
|
.recs_inorder = xfs_inobt_recs_inorder,
|
|
-#endif
|
|
|
|
};
|
|
};
|
|
|
|
|
|
static const struct xfs_btree_ops xfs_finobt_ops = {
|
|
static const struct xfs_btree_ops xfs_finobt_ops = {
|
|
@@ -360,10 +356,8 @@ static const struct xfs_btree_ops xfs_finobt_ops = {
|
|
.init_ptr_from_cur = xfs_finobt_init_ptr_from_cur,
|
|
.init_ptr_from_cur = xfs_finobt_init_ptr_from_cur,
|
|
.key_diff = xfs_inobt_key_diff,
|
|
.key_diff = xfs_inobt_key_diff,
|
|
.buf_ops = &xfs_inobt_buf_ops,
|
|
.buf_ops = &xfs_inobt_buf_ops,
|
|
-#if defined(DEBUG) || defined(XFS_WARN)
|
|
|
|
.keys_inorder = xfs_inobt_keys_inorder,
|
|
.keys_inorder = xfs_inobt_keys_inorder,
|
|
.recs_inorder = xfs_inobt_recs_inorder,
|
|
.recs_inorder = xfs_inobt_recs_inorder,
|
|
-#endif
|
|
|
|
};
|
|
};
|
|
|
|
|
|
/*
|
|
/*
|