[Ocfs2-commits] manish commits r923 - trunk/src

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Mon May 17 19:26:53 CDT 2004


Author: manish
Date: 2004-05-17 18:26:51 -0500 (Mon, 17 May 2004)
New Revision: 923

Modified:
   trunk/src/dir.c
   trunk/src/namei.c
Log:
Remove uses of OcfsQuerySystemTime since these disk lock fields are
entirely unused


Modified: trunk/src/dir.c
===================================================================
--- trunk/src/dir.c	2004-05-17 23:24:09 UTC (rev 922)
+++ trunk/src/dir.c	2004-05-17 23:26:51 UTC (rev 923)
@@ -1041,8 +1041,6 @@
 		status = -EFAIL;
 		goto leave;
 	}
-	OcfsQuerySystemTime (&DISK_LOCK_LAST_WRITE (InsertEntry));
-	DISK_LOCK_LAST_READ (InsertEntry) = DISK_LOCK_LAST_WRITE (InsertEntry);
 	DISK_LOCK_WRITER_NODE (InsertEntry) = osb->node_num;
 	DISK_LOCK_READER_NODE (InsertEntry) = osb->node_num;
 

Modified: trunk/src/namei.c
===================================================================
--- trunk/src/namei.c	2004-05-17 23:24:09 UTC (rev 922)
+++ trunk/src/namei.c	2004-05-17 23:26:51 UTC (rev 923)
@@ -256,7 +256,6 @@
 {
 	int status = 0;
 	ocfs_file_entry *fe = NULL;
-	__u64 t;
 	struct buffer_head *fe_bh = NULL;
 	int i;
 	unsigned long blk;
@@ -319,9 +318,6 @@
 	DISK_LOCK_READER_NODE (fe) = osb->node_num;
 	DISK_LOCK_WRITER_NODE (fe) = osb->node_num;
 	DISK_LOCK_OIN_MAP(fe) = (1 << osb->node_num);
-       	OcfsQuerySystemTime(&t);
-	DISK_LOCK_LAST_WRITE(fe) = t;
-       	DISK_LOCK_LAST_READ(fe) = t;
 
 	fe->create_time = fe->modify_time = OCFS_CURRENT_TIME;
 
@@ -805,7 +801,7 @@
 	struct buffer_head *insert_bh = NULL;
 	ocfs_file_entry *tmpfe = NULL;
 	ocfs_super *osb = NULL;
-	__u64 oldOffset, newDirOff, oldDirOff, t;
+	__u64 oldOffset, newDirOff, oldDirOff;
 	__u64 tmpoff = 0;
 	int kill_newfe = 0;
 	int delete_target_oin = 0;
@@ -1021,11 +1017,8 @@
 			new_dentry->d_name.len);
 		tmpfe->filename[new_dentry->d_name.len] = '\0';
 		tmpfe->filename_len = new_dentry->d_name.len;
-		OcfsQuerySystemTime (&t);
 		DISK_LOCK_CURRENT_MASTER (tmpfe) = osb->node_num;
 		DISK_LOCK_FILE_LOCK (tmpfe) = OCFS_DLM_ENABLE_CACHE_LOCK;
-		DISK_LOCK_LAST_WRITE (tmpfe) = t;
-		DISK_LOCK_LAST_READ (tmpfe) = t;
 		DISK_LOCK_READER_NODE (tmpfe) = osb->node_num;
 		DISK_LOCK_WRITER_NODE (tmpfe) = osb->node_num;
 		DISK_LOCK_OIN_MAP(tmpfe) = (1 << osb->node_num);



More information about the Ocfs2-commits mailing list