Skip to content

Commit

Permalink
ocfs2: Skip mount recovery for hard-ro mounts
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sunil Mushran authored and Joel Becker committed May 13, 2011
1 parent 33c12a5 commit 10b3dd7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fs/ocfs2/journal.c
Original file line number Diff line number Diff line change
Expand Up @@ -1260,6 +1260,9 @@ void ocfs2_complete_mount_recovery(struct ocfs2_super *osb)
{
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
* that */
ocfs2_queue_recovery_completion(journal, osb->slot_num,
Expand Down

0 comments on commit 10b3dd7

Please sign in to comment.