[Ocfs2-commits] mfasheh commits r1271 - trunk/src

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Thu Jul 15 16:59:12 CDT 2004


Author: mfasheh
Date: 2004-07-15 15:59:10 -0500 (Thu, 15 Jul 2004)
New Revision: 1271

Modified:
   trunk/src/journal.c
Log:
* use igrab instead of atomic_inc on icount.



Modified: trunk/src/journal.c
===================================================================
--- trunk/src/journal.c	2004-07-15 20:35:51 UTC (rev 1270)
+++ trunk/src/journal.c	2004-07-15 20:59:10 UTC (rev 1271)
@@ -974,7 +974,8 @@
 	if (bh)
 		get_bh(bh);
 
-	atomic_inc(&inode->i_count);
+	if (!igrab(inode))
+		BUG();
 
 	list_add_tail(&(lock->lock_list), &(handle->locks));
 	handle->num_locks++;



More information about the Ocfs2-commits mailing list