]> 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)
commitfa6cd89fe602df30789e6edf5f05eed7110dd409
treed2184906f15a6c7a0192cabeaa2133eeee885567
parent65efe587afe9f523776131e26d36fc68f377303b
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