xfs: open code sb verifier feature checks
authorDave Chinner <dchinner@redhat.com>
Thu, 19 Aug 2021 01:46:54 +0000 (18:46 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 19 Aug 2021 17:07:13 +0000 (10:07 -0700)
commitfe08cc5044486096bfb5ce9d3db4e915e53281ea
treeeaf9d5c3ece3ae4d31e2520c770715f8ca274590
parent03288b19093b9bcff72f0d5f90c578daf053f759
xfs: open code sb verifier feature checks

The superblock verifiers are one of the last places that use the sb
version functions to do feature checks. This are all quite simple
uses, and there aren't many of them so open code them all.

Also, move the good version number check into xfs_sb.c instead of it
being an inline function in xfs_format.h

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
fs/xfs/libxfs/xfs_format.h
fs/xfs/libxfs/xfs_sb.c
fs/xfs/libxfs/xfs_sb.h