aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/libxfs/xfs_rmap_btree.c
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2017-06-16 14:00:06 -0400
committerDarrick J. Wong <darrick.wong@oracle.com>2017-06-19 17:11:33 -0400
commit38dee376d67047e9877a34e408013852c9729eb8 (patch)
tree53489b593ca5dde647823ae6e59dbc342e068e46 /fs/xfs/libxfs/xfs_rmap_btree.c
parentc8ce540db5f67d254aafb14b5d76422c62a906df (diff)
xfs: always compile the btree inorder check functions
The btree record and key inorder check functions will be used by the btree scrubber code, so make sure they're always built. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Brian Foster <bfoster@redhat.com>
Diffstat (limited to 'fs/xfs/libxfs/xfs_rmap_btree.c')
-rw-r--r--fs/xfs/libxfs/xfs_rmap_btree.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/xfs/libxfs/xfs_rmap_btree.c b/fs/xfs/libxfs/xfs_rmap_btree.c
index c5b4a1c862b0..9d9c9192584c 100644
--- a/fs/xfs/libxfs/xfs_rmap_btree.c
+++ b/fs/xfs/libxfs/xfs_rmap_btree.c
@@ -377,7 +377,6 @@ const struct xfs_buf_ops xfs_rmapbt_buf_ops = {
377 .verify_write = xfs_rmapbt_write_verify, 377 .verify_write = xfs_rmapbt_write_verify,
378}; 378};
379 379
380#if defined(DEBUG) || defined(XFS_WARN)
381STATIC int 380STATIC int
382xfs_rmapbt_keys_inorder( 381xfs_rmapbt_keys_inorder(
383 struct xfs_btree_cur *cur, 382 struct xfs_btree_cur *cur,
@@ -437,7 +436,6 @@ xfs_rmapbt_recs_inorder(
437 return 1; 436 return 1;
438 return 0; 437 return 0;
439} 438}
440#endif /* DEBUG */
441 439
442static const struct xfs_btree_ops xfs_rmapbt_ops = { 440static const struct xfs_btree_ops xfs_rmapbt_ops = {
443 .rec_len = sizeof(struct xfs_rmap_rec), 441 .rec_len = sizeof(struct xfs_rmap_rec),
@@ -456,10 +454,8 @@ static const struct xfs_btree_ops xfs_rmapbt_ops = {
456 .key_diff = xfs_rmapbt_key_diff, 454 .key_diff = xfs_rmapbt_key_diff,
457 .buf_ops = &xfs_rmapbt_buf_ops, 455 .buf_ops = &xfs_rmapbt_buf_ops,
458 .diff_two_keys = xfs_rmapbt_diff_two_keys, 456 .diff_two_keys = xfs_rmapbt_diff_two_keys,
459#if defined(DEBUG) || defined(XFS_WARN)
460 .keys_inorder = xfs_rmapbt_keys_inorder, 457 .keys_inorder = xfs_rmapbt_keys_inorder,
461 .recs_inorder = xfs_rmapbt_recs_inorder, 458 .recs_inorder = xfs_rmapbt_recs_inorder,
462#endif
463}; 459};
464 460
465/* 461/*