]> 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)
commit707e961b6846fb26320d3aba34971262b2aed1fe
treeb84f6d406680b3bb5a9b6de2d70ab7c1dfe04993
parent59178c530c0e1d6a18baba3d0d266b3ee1b2dec2
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