]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: introduce xfs_btree_debug_check_ptr
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 4 Jun 2018 04:10:48 +0000 (21:10 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 5 Jun 2018 01:25:05 +0000 (18:25 -0700)
commitc6827a787df06317ca8492cd3f63b4e9fa17691c
treed2184906f15a6c7a0192cabeaa2133eeee885567
parentb9ffacf907444fa05f438b7184e269f5697dab1b
xfs: introduce xfs_btree_debug_check_ptr

Make xfs_btree_check_ptr a non-debug function and introduce a new _debug
version that only runs when #ifdef DEBUG.   This will enable us to reuse
the checking logic with other parts of the btree code.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
fs/xfs/libxfs/xfs_btree.c