]> Pileus Git - ~andy/linux/commit
[XFS] refactor btree validation helpers
authorChristoph Hellwig <hch@infradead.org>
Thu, 30 Oct 2008 05:54:53 +0000 (16:54 +1100)
committerLachlan McIlroy <lachlan@sgi.com>
Thu, 30 Oct 2008 05:54:53 +0000 (16:54 +1100)
commita23f6ef8ce966abc0f6e24a81ceb6a74ed30693b
treefa0d60a742dd47a966c177298268ca956c8bae4b
parentb524bfeee2152fa64b6210f28ced80489b9d2439
[XFS] refactor btree validation helpers

Move the various btree validation helpers around in xfs_btree.c so that
they are close to each other and in common #ifdef DEBUG sections.

Also add a new xfs_btree_check_ptr helper to check a btree ptr that can be
either long or short form.

Split out from a bigger patch from Dave Chinner with various small changes
applied by me.

SGI-PV: 985583

SGI-Modid: xfs-linux-melb:xfs-kern:32183a

Signed-off-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
Signed-off-by: Bill O'Donnell <billodo@sgi.com>
Signed-off-by: David Chinner <david@fromorbit.com>
fs/xfs/xfs_btree.c
fs/xfs/xfs_btree.h