Skip to content

Commit 10b3dd7

Browse files
Sunil Mushranjlbec
authored andcommitted
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: Sunil Mushran <sunil.mushran@oracle.com> Acked-by: Mark Fasheh <mfasheh@suse.com> Signed-off-by: Joel Becker <jlbec@evilplan.org>
1 parent 33c12a5 commit 10b3dd7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

fs/ocfs2/journal.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1260,6 +1260,9 @@ void ocfs2_complete_mount_recovery(struct ocfs2_super *osb)
12601260
{
12611261
struct ocfs2_journal *journal = osb->journal;
12621262

1263+
if (ocfs2_is_hard_readonly(osb))
1264+
return;
1265+
12631266
/* No need to queue up our truncate_log as regular cleanup will catch
12641267
* that */
12651268
ocfs2_queue_recovery_completion(journal, osb->slot_num,

0 commit comments

Comments
 (0)