]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6582075aa86427ef556633a089fbfac2f4c7c295
tree83f5ae55530eee92213a9dcd503a69caaaae576c
parent27d6e1d4ad8f79c1da44b64611df2b59be6180e2
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