we should check the return value of ocfs2_journal_load() before going on.
this patch is based on 1.2 svn, but mainline git should has the same fix.

Signed-off-by: wengang wang <[EMAIL PROTECTED]>
---
super.c |    6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)



--
Wengang Wang
Member of Technical Staff
Oracle Asia R&D Center
Open Source Technologies Development

Tel:      +86 10 8278 6265
Mobile:   +86 13381078925

Index: fs/ocfs2/super.c
===================================================================
--- fs/ocfs2/super.c	(revision 3100)
+++ fs/ocfs2/super.c	(working copy)
@@ -1701,7 +1701,11 @@
 	local = ocfs2_mount_local(osb);
 
 	/* will play back anything left in the journal. */
-	ocfs2_journal_load(osb->journal, local);
+	status = ocfs2_journal_load(osb->journal, local);
+	if (status < 0) {
+		mlog(ML_ERROR, "Load journal failed! %d\n", status);
+		goto finally;
+	}
 
 	if (dirty) {
 		/* recover my local alloc if we didn't unmount cleanly. */
_______________________________________________
Ocfs2-devel mailing list
[email protected]
http://oss.oracle.com/mailman/listinfo/ocfs2-devel

Reply via email to