aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_btree.c
diff options
context:
space:
mode:
authorLachlan McIlroy <lachlan@sgi.com>2008-10-30 02:05:26 -0400
committerLachlan McIlroy <lachlan@sgi.com>2008-10-30 02:05:26 -0400
commit24ee0e49c9cce23acb1758728cb09e8d2b53bd33 (patch)
treef6aa362a7b71bc34fb44c39278fdbef6b0ffce2f /fs/xfs/xfs_btree.c
parentd1de802155341ab63e64d37c58c61d6f358bb3ad (diff)
[XFS] Make xfs_btree_check_ptr() debug-only code.
SGI-PV: 985583 SGI-Modid: xfs-linux-melb:xfs-kern:32224a Signed-off-by: Lachlan McIlroy <lachlan@sgi.com> Signed-off-by: Christoph Hellwig <hch@infradead.org>
Diffstat (limited to 'fs/xfs/xfs_btree.c')
-rw-r--r--fs/xfs/xfs_btree.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/xfs/xfs_btree.c b/fs/xfs/xfs_btree.c
index b735c7299a8e..72a26bb76430 100644
--- a/fs/xfs/xfs_btree.c
+++ b/fs/xfs/xfs_btree.c
@@ -160,6 +160,7 @@ xfs_btree_check_lptr(
160 return 0; 160 return 0;
161} 161}
162 162
163#ifdef DEBUG
163/* 164/*
164 * Check that (short) pointer is ok. 165 * Check that (short) pointer is ok.
165 */ 166 */
@@ -197,6 +198,7 @@ xfs_btree_check_ptr(
197 be32_to_cpu((&ptr->s)[index]), level); 198 be32_to_cpu((&ptr->s)[index]), level);
198 } 199 }
199} 200}
201#endif
200 202
201/* 203/*
202 * Delete the btree cursor. 204 * Delete the btree cursor.