]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/xfs/xfs_sb.h
Merge current mainline tree into linux-omap tree
[linux-2.6-omap-h63xx.git] / fs / xfs / xfs_sb.h
index b1a83f8ec04422b7aa6a4bc447754ca3af2dd6d3..d904efe7f871dd6725809e681cb8a385b857a69b 100644 (file)
@@ -320,11 +320,12 @@ static inline int xfs_sb_good_version(xfs_sb_t *sbp)
 #endif /* __KERNEL__ */
 
 /*
- * Detect a bad features2 field
+ * Detect a mismatched features2 field.  Older kernels read/wrote
+ * this into the wrong slot, so to be safe we keep them in sync.
  */
-static inline int xfs_sb_has_bad_features2(xfs_sb_t *sbp)
+static inline int xfs_sb_has_mismatched_features2(xfs_sb_t *sbp)
 {
-       return (sbp->sb_bad_features2 != 0);
+       return (sbp->sb_bad_features2 != sbp->sb_features2);
 }
 
 static inline unsigned xfs_sb_version_tonew(unsigned v)