From: Sunil Mushran Date: Wed, 4 May 2011 17:28:02 +0000 (-0700) Subject: ocfs2: Skip mount recovery for hard-ro mounts X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=10b3dd76117a327557b8cb898b41c18afd08dc86;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Acked-by: Mark Fasheh Signed-off-by: Joel Becker --- diff --git a/fs/ocfs2/journal.c b/fs/ocfs2/journal.c index b141a44605ca..295d56454e8b 100644 --- a/fs/ocfs2/journal.c +++ b/fs/ocfs2/journal.c @@ -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,