]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: refactor btree block header checking functions
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 18 Oct 2017 04:37:33 +0000 (21:37 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 26 Oct 2017 22:38:23 +0000 (15:38 -0700)
commit1b887fcb851abd94ce182cbf2b8bbfb33f7667c3
treeb84f6d406680b3bb5a9b6de2d70ab7c1dfe04993
parent508c6cbc757d1b66443fbcbefddeb0a235c845fe
xfs: refactor btree block header checking functions

Refactor the btree block header checks to have an internal function that
returns the address of the failing check without logging errors.  The
scrubber will call the internal function, while the external version
will maintain the current logging behavior.

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