xfs: allow lazy sb counter sync during filesystem freeze sequence
[cascardo/linux.git] / fs / xfs / xfs_log.c
index fe88ef6..e810e9d 100644 (file)
@@ -1031,7 +1031,7 @@ xfs_log_need_covered(xfs_mount_t *mp)
        struct xlog     *log = mp->m_log;
        int             needed = 0;
 
-       if (!xfs_fs_writable(mp))
+       if (!xfs_fs_writable(mp, SB_FREEZE_WRITE))
                return 0;
 
        if (!xlog_cil_empty(log))