[Ocfs2-commits] mfasheh commits r2980 - branches/ocfs2-1.2/fs/ocfs2
svn-commits at oss.oracle.com
svn-commits at oss.oracle.com
Thu Feb 1 11:43:27 PST 2007
Author: mfasheh
Date: 2007-02-01 11:43:26 -0800 (Thu, 01 Feb 2007)
New Revision: 2980
Modified:
branches/ocfs2-1.2/fs/ocfs2/journal.h
Log:
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: branches/ocfs2-1.2/fs/ocfs2/journal.h
===================================================================
--- branches/ocfs2-1.2/fs/ocfs2/journal.h 2007-01-30 20:38:44 UTC (rev 2979)
+++ branches/ocfs2-1.2/fs/ocfs2/journal.h 2007-02-01 19:43:26 UTC (rev 2980)
@@ -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