| To: | xfs@xxxxxxxxxxx |
|---|---|
| Subject: | ***** SUSPECTED SPAM ***** [PATCH 28/50] xfs: don't special case shared superblock mounts |
| From: | Dave Chinner <david@xxxxxxxxxxxxx> |
| Date: | Mon, 12 Aug 2013 20:49:49 +1000 |
| Delivered-to: | xfs@xxxxxxxxxxx |
| Importance: | Low |
| In-reply-to: | <1376304611-22994-1-git-send-email-david@xxxxxxxxxxxxx> |
| References: | <1376304611-22994-1-git-send-email-david@xxxxxxxxxxxxx> |
From: Dave Chinner <dchinner@xxxxxxxxxx>
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 can be used as neither
like it...
Signed-off-by: Dave Chinner <dchinner@xxxxxxxxxx>
Reviewed-by: Mark Tinguely <tinguely@xxxxxxx>
---
fs/xfs/xfs_sb.h | 7 -------
1 file changed, 7 deletions(-)
diff --git a/fs/xfs/xfs_sb.h b/fs/xfs/xfs_sb.h
index 91e163a..db7593f 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)
(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)
--
1.8.3.2
|
| Previous by Date: | ***** SUSPECTED SPAM ***** [PATCH 47/50] xfs: split the CIL lock, Dave Chinner |
|---|---|
| Next by Date: | ***** SUSPECTED SPAM ***** [PATCH 21/50] xfs: create xfs_bmap_util.[ch], Dave Chinner |
| Previous by Thread: | ***** SUSPECTED SPAM ***** [PATCH 47/50] xfs: split the CIL lock, Dave Chinner |
| Next by Thread: | ***** SUSPECTED SPAM ***** [PATCH 21/50] xfs: create xfs_bmap_util.[ch], Dave Chinner |
| Indexes: | [Date] [Thread] [Top] [All Lists] |