[Ocfs2-commits] mfasheh commits r2320 - trunk/fs/ocfs2

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Wed May 25 14:16:41 CDT 2005


Author: mfasheh
Signed-off-by: manish
Date: 2005-05-25 14:16:39 -0500 (Wed, 25 May 2005)
New Revision: 2320

Modified:
   trunk/fs/ocfs2/journal.c
Log:
* increment ip_open_count on the journal files earlier. This fixes
  bugzilla bug #456

Signed-off-by: manish



Modified: trunk/fs/ocfs2/journal.c
===================================================================
--- trunk/fs/ocfs2/journal.c	2005-05-25 18:39:55 UTC (rev 2319)
+++ trunk/fs/ocfs2/journal.c	2005-05-25 19:16:39 UTC (rev 2320)
@@ -533,6 +533,7 @@
 	}
 
 	SET_INODE_JOURNAL(inode);
+	OCFS2_I(inode)->ip_open_count++;
 
 	status = ocfs2_meta_lock(inode, NULL, &bh, 1);
 	if (status < 0) {
@@ -562,8 +563,6 @@
 		     "inode and fe i_size's differ! (%lld != %"MLFu64")",
 		     inode->i_size, fe->i_size);
 
-	OCFS2_I(inode)->ip_open_count++;
-
 	/* call the kernels journal init function now */
 	j_journal = journal_init_inode(inode);
 	if (j_journal == NULL) {



More information about the Ocfs2-commits mailing list