[Ocfs2-commits] mfasheh commits r2710 - branches/ocfs2-1.0/fs/ocfs2

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Tue Nov 22 17:34:38 CST 2005


Author: mfasheh
Signed-off-by: smushran
Date: 2005-11-22 17:34:38 -0600 (Tue, 22 Nov 2005)
New Revision: 2710

Modified:
   branches/ocfs2-1.0/fs/ocfs2/super.c
Log:
* create osb_debug_root in ocfs2_mount_volume()

Signed-off-by: smushran



Modified: branches/ocfs2-1.0/fs/ocfs2/super.c
===================================================================
--- branches/ocfs2-1.0/fs/ocfs2/super.c	2005-11-22 22:12:11 UTC (rev 2709)
+++ branches/ocfs2-1.0/fs/ocfs2/super.c	2005-11-22 23:34:38 UTC (rev 2710)
@@ -393,14 +393,6 @@
 	sb->s_flags |= MS_NOATIME;
 	sb->s_fs_info = NULL;
 
-	osb->osb_debug_root = debugfs_create_dir(osb->uuid_str,
-						 ocfs2_debugfs_root);
-	if (!osb->osb_debug_root) {
-		status = -EINVAL;
-		mlog(ML_ERROR, "Unable to create per-mount debugfs root.\n");
-		goto read_super_error;
-	}
-
 	status = ocfs2_mount_volume(sb, mount_opt);
 	/* ocfs2_mount_volume may set osb even on error so we want to
 	 * pull it off for proper cleanup. */
@@ -926,6 +918,14 @@
 		goto leave;
 	}
 
+	osb->osb_debug_root = debugfs_create_dir(osb->uuid_str,
+						 ocfs2_debugfs_root);
+	if (!osb->osb_debug_root) {
+		status = -EINVAL;
+		mlog(ML_ERROR, "Unable to create per-mount debugfs root.\n");
+		goto leave;
+	}
+
 	status = ocfs2_fill_local_node_info(osb);
 	if (status < 0) {
 		mlog_errno(status);



More information about the Ocfs2-commits mailing list