Commit 4c3c6220 authored by Stephen Lord's avatar Stephen Lord

[XFS] if we remount the fs readonly, there is no need to put

out dummy log records to clear the log as these actually
have the effect of dirtying it in a readonly unmount.

SGI Modid: 2.5.x-xfs:slinx:150738a
parent a29d37b9
...@@ -838,8 +838,10 @@ xfs_log_need_covered(xfs_mount_t *mp) ...@@ -838,8 +838,10 @@ xfs_log_need_covered(xfs_mount_t *mp)
SPLDECL(s); SPLDECL(s);
int needed = 0, gen; int needed = 0, gen;
xlog_t *log = mp->m_log; xlog_t *log = mp->m_log;
vfs_t *vfsp = XFS_MTOVFS(mp);
if (mp->m_frozen || XFS_FORCED_SHUTDOWN(mp)) if (mp->m_frozen || XFS_FORCED_SHUTDOWN(mp) ||
(vfsp->vfs_flag & VFS_RDONLY))
return 0; return 0;
s = LOG_LOCK(log); s = LOG_LOCK(log);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment