From: Lachlan McIlroy Date: Thu, 30 Oct 2008 06:05:26 +0000 (+1100) Subject: [XFS] Make xfs_btree_check_ptr() debug-only code. X-Git-Tag: v2.6.29-rc1~552^2~81^2~63 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=24ee0e49c9cce23acb1758728cb09e8d2b53bd33;p=linux-2.6-omap-h63xx.git [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 Signed-off-by: Christoph Hellwig --- diff --git a/fs/xfs/xfs_btree.c b/fs/xfs/xfs_btree.c index b735c7299a8..72a26bb7643 100644 --- a/fs/xfs/xfs_btree.c +++ b/fs/xfs/xfs_btree.c @@ -160,6 +160,7 @@ xfs_btree_check_lptr( return 0; } +#ifdef DEBUG /* * Check that (short) pointer is ok. */ @@ -197,6 +198,7 @@ xfs_btree_check_ptr( be32_to_cpu((&ptr->s)[index]), level); } } +#endif /* * Delete the btree cursor.