xfs: remove shared supberlock feature checking
We reject any filesystem that is mounted with this feature bit set, so we don't need to check for it anywhere else. Remove the function for checking if the feature bit is set and any code that uses it. Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Jie Liu <jeff.liu@oracle.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:

committed by
Dave Chinner

parent
5d074a4f80
commit
ab3e57b53f
@@ -291,7 +291,8 @@ xfs_mount_validate_sb(
|
||||
(sbp->sb_imax_pct > 100 /* zero sb_imax_pct is valid */) ||
|
||||
sbp->sb_dblocks == 0 ||
|
||||
sbp->sb_dblocks > XFS_MAX_DBLOCKS(sbp) ||
|
||||
sbp->sb_dblocks < XFS_MIN_DBLOCKS(sbp))) {
|
||||
sbp->sb_dblocks < XFS_MIN_DBLOCKS(sbp) ||
|
||||
sbp->sb_shared_vn != 0)) {
|
||||
xfs_notice(mp, "SB sanity check failed");
|
||||
return XFS_ERROR(EFSCORRUPTED);
|
||||
}
|
||||
|
Reference in New Issue
Block a user