]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: introduce xfs_btree_debug_check_ptr
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 28 Jun 2018 20:11:58 +0000 (15:11 -0500)
committerEric Sandeen <sandeen@redhat.com>
Thu, 28 Jun 2018 20:11:58 +0000 (15:11 -0500)
commitefa7dddb8261a36b50cafc3b42c7106f917b515b
tree0b4b5c47d7761f6bd95ca6bf87cae3e47cd5b464
parent280f5adef5e6da98abe4319fa1a2518ed4be7e92
xfs: introduce xfs_btree_debug_check_ptr

Source kernel commit: 4cbae4b816fd61e63abbe8330741e257fa95d4c5

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>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_btree.c