Skip to contentSkip to conversation

ocfs2: Skip mount recovery for hard-ro mounts

PATCH New Sunil Mushran 2 participants 2 messages Apr 21, 2011 OCFS2

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ocfs2: Skip mount recovery for hard-ro mounts

Patch skips mount recovery for hard-ro mounts which otherwise leads to an oops.

---
 fs/ocfs2/journal.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
fs/ocfs2/journal.c +3 -0
index dcc2d93..c9699a7 100644
@@ -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,
Signature · 1 line
1.7.1
#1 lore raw

PATCH 1/1 ocfs2: Skip mount recovery for hard-ro mounts

Quoted 3 lines · Sunil Mushran

Patch skips mount recovery for hard-ro mounts which otherwise leads to an oops.

I understand there's a couple more places we need to fix up which have a similar bug. Still, this seems a good fix to start with.

	--Mark

--
Mark Fasheh