Commit 10b3dd76 authored by Sunil Mushran's avatar Sunil Mushran Committed by Joel Becker

ocfs2: Skip mount recovery for hard-ro mounts

Patch skips mount recovery for hard-ro mounts which otherwise leads to an oops.
Signed-off-by: default avatarSunil Mushran <sunil.mushran@oracle.com>
Acked-by: default avatarMark Fasheh <mfasheh@suse.com>
Signed-off-by: default avatarJoel Becker <jlbec@evilplan.org>
parent 33c12a54
...@@ -1260,6 +1260,9 @@ void ocfs2_complete_mount_recovery(struct ocfs2_super *osb) ...@@ -1260,6 +1260,9 @@ void ocfs2_complete_mount_recovery(struct ocfs2_super *osb)
{ {
struct ocfs2_journal *journal = osb->journal; struct ocfs2_journal *journal = osb->journal;
if (ocfs2_is_hard_readonly(osb))
return;
/* No need to queue up our truncate_log as regular cleanup will catch /* No need to queue up our truncate_log as regular cleanup will catch
* that */ * that */
ocfs2_queue_recovery_completion(journal, osb->slot_num, ocfs2_queue_recovery_completion(journal, osb->slot_num,
......
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