]> 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)
commita2ff1a4eb9f3b30ac5ac1d89ac0ea1e35480b5b3
tree83f5ae55530eee92213a9dcd503a69caaaae576c
parent40553dea78f7e9ff35aa9c37540f0b960193749a
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