xfs: introduce xfs_sb_is_v5 helper
[sfrench/cifs-2.6.git] / fs / xfs / xfs_log_recover.c
index a985aa1a721c2a876a7ef6d88b07d9677345580b..10562ecbd9eac881329e5c81d3e2121bc6812e7e 100644 (file)
@@ -3413,7 +3413,7 @@ xlog_recover(
                 * (e.g. unsupported transactions, then simply reject the
                 * attempt at recovery before touching anything.
                 */
-               if (XFS_SB_VERSION_NUM(&log->l_mp->m_sb) == XFS_SB_VERSION_5 &&
+               if (xfs_sb_is_v5(&log->l_mp->m_sb) &&
                    xfs_sb_has_incompat_log_feature(&log->l_mp->m_sb,
                                        XFS_SB_FEAT_INCOMPAT_LOG_UNKNOWN)) {
                        xfs_warn(log->l_mp,