diff options
Diffstat (limited to 'fs/xfs/xfs_mount.c')
-rw-r--r-- | fs/xfs/xfs_mount.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/fs/xfs/xfs_mount.c b/fs/xfs/xfs_mount.c index faeead671f9f..56e85a6c85c7 100644 --- a/fs/xfs/xfs_mount.c +++ b/fs/xfs/xfs_mount.c | |||
@@ -934,6 +934,20 @@ xfs_mountfs( | |||
934 | } | 934 | } |
935 | 935 | ||
936 | /* | 936 | /* |
937 | * Now the log is fully replayed, we can transition to full read-only | ||
938 | * mode for read-only mounts. This will sync all the metadata and clean | ||
939 | * the log so that the recovery we just performed does not have to be | ||
940 | * replayed again on the next mount. | ||
941 | * | ||
942 | * We use the same quiesce mechanism as the rw->ro remount, as they are | ||
943 | * semantically identical operations. | ||
944 | */ | ||
945 | if ((mp->m_flags & (XFS_MOUNT_RDONLY|XFS_MOUNT_NORECOVERY)) == | ||
946 | XFS_MOUNT_RDONLY) { | ||
947 | xfs_quiesce_attr(mp); | ||
948 | } | ||
949 | |||
950 | /* | ||
937 | * Complete the quota initialisation, post-log-replay component. | 951 | * Complete the quota initialisation, post-log-replay component. |
938 | */ | 952 | */ |
939 | if (quotamount) { | 953 | if (quotamount) { |