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

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Wed Jul 6 20:45:38 CDT 2005


Author: mfasheh
Signed-off-by: jlbec
Date: 2005-07-06 20:45:37 -0500 (Wed, 06 Jul 2005)
New Revision: 2458

Modified:
   trunk/fs/ocfs2/file.c
   trunk/fs/ocfs2/inode.c
Log:
* We weren't setting the proper locking info in inodes during the 1st
  part of truncate.

Signed-off-by: jlbec



Modified: trunk/fs/ocfs2/file.c
===================================================================
--- trunk/fs/ocfs2/file.c	2005-07-02 01:21:20 UTC (rev 2457)
+++ trunk/fs/ocfs2/file.c	2005-07-07 01:45:37 UTC (rev 2458)
@@ -431,6 +431,8 @@
 		goto bail;
 	}
 
+	ocfs2_set_inode_lock_trans(osb->journal, inode);
+
 	status = ocfs2_set_inode_size(handle, inode, fe_bh, new_i_size);
 	if (status < 0) {
 		mlog_errno(status);

Modified: trunk/fs/ocfs2/inode.c
===================================================================
--- trunk/fs/ocfs2/inode.c	2005-07-02 01:21:20 UTC (rev 2457)
+++ trunk/fs/ocfs2/inode.c	2005-07-07 01:45:37 UTC (rev 2458)
@@ -411,6 +411,8 @@
 		goto bail;
 	}
 
+	ocfs2_set_inode_lock_trans(osb->journal, inode);
+
 	status = ocfs2_set_inode_size(handle, inode, fe_bh, 0ULL);
 	if (status < 0) {
 		mlog_errno(status);



More information about the Ocfs2-commits mailing list