From: Dave Chinner Date: Wed, 4 Sep 2013 22:05:38 +0000 (+0000) Subject: xfs: don't special case shared superblock mounts X-Git-Tag: v3.2.0-alpha1~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9326464bc6f9e14b2d087faf0aee86b4f935f2aa;p=thirdparty%2Fxfsprogs-dev.git xfs: don't special case shared superblock mounts Neither kernel or userspace support shared read-only mounts, so don't beother special casing the support check to be different between kernel and userspace. The same check canbe used as neither like it... Signed-off-by: Dave Chinner Reviewed-by: Mark Tinguely Signed-off-by: Rich Johnston --- diff --git a/include/xfs_sb.h b/include/xfs_sb.h index d9fe1805c..2e74d7e36 100644 --- a/include/xfs_sb.h +++ b/include/xfs_sb.h @@ -355,15 +355,8 @@ static inline int xfs_sb_good_version(xfs_sb_t *sbp) (sbp->sb_features2 & ~XFS_SB_VERSION2_OKREALBITS))) return 0; -#ifdef __KERNEL__ if (sbp->sb_shared_vn > XFS_SB_MAX_SHARED_VN) return 0; -#else - if ((sbp->sb_versionnum & XFS_SB_VERSION_SHAREDBIT) && - sbp->sb_shared_vn > XFS_SB_MAX_SHARED_VN) - return 0; -#endif - return 1; } if (XFS_SB_VERSION_NUM(sbp) == XFS_SB_VERSION_5)