diff options
author | Dave Chinner <dchinner@redhat.com> | 2013-08-12 06:49:49 -0400 |
---|---|---|
committer | Ben Myers <bpm@sgi.com> | 2013-08-12 17:57:16 -0400 |
commit | 94b406091bb3fcbab3d846d7d273e30e5fc8ceb5 (patch) | |
tree | 7b4c24566fb4dabb4a48f1b343d7f916ccdae6c6 /fs/xfs | |
parent | a133d952b44cef278d2da664d742d51ef95f4dd3 (diff) |
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: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Mark Tinguely <tinguely@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/xfs')
-rw-r--r-- | fs/xfs/xfs_sb.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/fs/xfs/xfs_sb.h b/fs/xfs/xfs_sb.h index 91e163a3794d..db7593f4bc7e 100644 --- a/fs/xfs/xfs_sb.h +++ b/fs/xfs/xfs_sb.h | |||
@@ -355,15 +355,8 @@ static inline int xfs_sb_good_version(xfs_sb_t *sbp) | |||
355 | (sbp->sb_features2 & ~XFS_SB_VERSION2_OKREALBITS))) | 355 | (sbp->sb_features2 & ~XFS_SB_VERSION2_OKREALBITS))) |
356 | return 0; | 356 | return 0; |
357 | 357 | ||
358 | #ifdef __KERNEL__ | ||
359 | if (sbp->sb_shared_vn > XFS_SB_MAX_SHARED_VN) | 358 | if (sbp->sb_shared_vn > XFS_SB_MAX_SHARED_VN) |
360 | return 0; | 359 | return 0; |
361 | #else | ||
362 | if ((sbp->sb_versionnum & XFS_SB_VERSION_SHAREDBIT) && | ||
363 | sbp->sb_shared_vn > XFS_SB_MAX_SHARED_VN) | ||
364 | return 0; | ||
365 | #endif | ||
366 | |||
367 | return 1; | 360 | return 1; |
368 | } | 361 | } |
369 | if (XFS_SB_VERSION_NUM(sbp) == XFS_SB_VERSION_5) | 362 | if (XFS_SB_VERSION_NUM(sbp) == XFS_SB_VERSION_5) |