diff options
Diffstat (limited to 'fs/xfs/xfs_log.c')
-rw-r--r-- | fs/xfs/xfs_log.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/xfs/xfs_log.c b/fs/xfs/xfs_log.c index 7d882d6c7d49..9f70ab3e0983 100644 --- a/fs/xfs/xfs_log.c +++ b/fs/xfs/xfs_log.c | |||
@@ -498,9 +498,8 @@ xfs_log_mount(xfs_mount_t *mp, | |||
498 | * just worked. | 498 | * just worked. |
499 | */ | 499 | */ |
500 | if (!(mp->m_flags & XFS_MOUNT_NORECOVERY)) { | 500 | if (!(mp->m_flags & XFS_MOUNT_NORECOVERY)) { |
501 | int error; | 501 | bhv_vfs_t *vfsp = XFS_MTOVFS(mp); |
502 | vfs_t *vfsp = XFS_MTOVFS(mp); | 502 | int error, readonly = (vfsp->vfs_flag & VFS_RDONLY); |
503 | int readonly = (vfsp->vfs_flag & VFS_RDONLY); | ||
504 | 503 | ||
505 | if (readonly) | 504 | if (readonly) |
506 | vfsp->vfs_flag &= ~VFS_RDONLY; | 505 | vfsp->vfs_flag &= ~VFS_RDONLY; |
@@ -816,7 +815,7 @@ xfs_log_need_covered(xfs_mount_t *mp) | |||
816 | SPLDECL(s); | 815 | SPLDECL(s); |
817 | int needed = 0, gen; | 816 | int needed = 0, gen; |
818 | xlog_t *log = mp->m_log; | 817 | xlog_t *log = mp->m_log; |
819 | vfs_t *vfsp = XFS_MTOVFS(mp); | 818 | bhv_vfs_t *vfsp = XFS_MTOVFS(mp); |
820 | 819 | ||
821 | if (fs_frozen(vfsp) || XFS_FORCED_SHUTDOWN(mp) || | 820 | if (fs_frozen(vfsp) || XFS_FORCED_SHUTDOWN(mp) || |
822 | (vfsp->vfs_flag & VFS_RDONLY)) | 821 | (vfsp->vfs_flag & VFS_RDONLY)) |