提交 94b40609 编写于 作者: D Dave Chinner 提交者: Ben Myers

xfs: don't special case shared superblock mounts

Neither kernel or userspace support shared read-only mounts, so
don't bother special casing the support check to be different
between kernel and userspace. The same check can be used as neither
like it...
Signed-off-by: NDave Chinner <dchinner@redhat.com>
Reviewed-by: NMark Tinguely <tinguely@sgi.com>
Signed-off-by: NBen Myers <bpm@sgi.com>
上级 a133d952
...@@ -355,15 +355,8 @@ static inline int xfs_sb_good_version(xfs_sb_t *sbp) ...@@ -355,15 +355,8 @@ static inline int xfs_sb_good_version(xfs_sb_t *sbp)
(sbp->sb_features2 & ~XFS_SB_VERSION2_OKREALBITS))) (sbp->sb_features2 & ~XFS_SB_VERSION2_OKREALBITS)))
return 0; return 0;
#ifdef __KERNEL__
if (sbp->sb_shared_vn > XFS_SB_MAX_SHARED_VN) if (sbp->sb_shared_vn > XFS_SB_MAX_SHARED_VN)
return 0; 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; return 1;
} }
if (XFS_SB_VERSION_NUM(sbp) == XFS_SB_VERSION_5) if (XFS_SB_VERSION_NUM(sbp) == XFS_SB_VERSION_5)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册