[Ocfs2-commits] mfasheh commits r2981 - tags/ocfs2-1.2.4/fs/ocfs2

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Thu Feb 1 11:45:24 PST 2007


Author: mfasheh
Date: 2007-02-01 11:45:23 -0800 (Thu, 01 Feb 2007)
New Revision: 2981

Modified:
   tags/ocfs2-1.2.4/fs/ocfs2/journal.h
Log:
Port r2980 into the 1.2.4 tag:

ocfs2: ocfs2_link() journal credits update

Commit 2954 fixed some missing directory   
c/mtime updates in part by introducing a dinode update in ocfs2_add_entry(). 
Unfortunately, ocfs2_link() (which didn't update the directory inode before)   
is now missing a single journal credit. Fix this by doubling the number of  
inode updates expected during hard link creation.

Signed-off-by: smushran



Modified: tags/ocfs2-1.2.4/fs/ocfs2/journal.h
===================================================================
--- tags/ocfs2-1.2.4/fs/ocfs2/journal.h	2007-02-01 19:43:26 UTC (rev 2980)
+++ tags/ocfs2-1.2.4/fs/ocfs2/journal.h	2007-02-01 19:45:23 UTC (rev 2981)
@@ -355,8 +355,8 @@
  * for the dinode, one for the new block. */
 #define OCFS2_SIMPLE_DIR_EXTEND_CREDITS (2)
 
-/* file update (nlink, etc) + dir entry block */
-#define OCFS2_LINK_CREDITS  (OCFS2_INODE_UPDATE_CREDITS + 1)
+/* file update (nlink, etc) + directory mtime/ctime + dir entry block */
+#define OCFS2_LINK_CREDITS  (2*OCFS2_INODE_UPDATE_CREDITS + 1)
 
 /* inode + dir inode (if we unlink a dir), + dir entry block + orphan
  * dir inode link */




More information about the Ocfs2-commits mailing list