Skip to content

Commit

Permalink
[XFS] Make xfs_btree_check_ptr() debug-only code.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Lachlan McIlroy committed Oct 30, 2008
1 parent d1de802 commit 24ee0e4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fs/xfs/xfs_btree.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ xfs_btree_check_lptr(
return 0;
}

#ifdef DEBUG
/*
* Check that (short) pointer is ok.
*/
Expand Down Expand Up @@ -197,6 +198,7 @@ xfs_btree_check_ptr(
be32_to_cpu((&ptr->s)[index]), level);
}
}
#endif

/*
* Delete the btree cursor.
Expand Down

0 comments on commit 24ee0e4

Please sign in to comment.