xfs: move kernel-specific superblock validation out of libxfs
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 24 Nov 2020 19:45:54 +0000 (11:45 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 9 Dec 2020 03:30:10 +0000 (19:30 -0800)
commit3945ae03d822aa47584dd502ac024ae1e1eb9e2d
tree83f5ae55530eee92213a9dcd503a69caaaae576c
parent418baf2c28f3473039f2f7377760bd8f6897ae18
xfs: move kernel-specific superblock validation out of libxfs

A couple of the superblock validation checks apply only to the kernel,
so move them to xfs_fc_fill_super before we add the needsrepair "feature",
which will prevent the kernel (but not xfsprogs) from mounting the
filesystem.  This also reduces the diff between kernel and userspace
libxfs.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
fs/xfs/libxfs/xfs_sb.c
fs/xfs/xfs_super.c