[Ocfs2-commits] khackel commits r1116 - branches/format-changes/src

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Wed Jun 16 17:30:22 CDT 2004


Author: khackel
Date: 2004-06-16 16:30:21 -0500 (Wed, 16 Jun 2004)
New Revision: 1116

Modified:
   branches/format-changes/src/namei.c
Log:
fix symlink just like trunk, get rid of new inode io_sem and move icache/dcache add to bottom

Modified: branches/format-changes/src/namei.c
===================================================================
--- branches/format-changes/src/namei.c	2004-06-16 21:29:52 UTC (rev 1115)
+++ branches/format-changes/src/namei.c	2004-06-16 21:30:21 UTC (rev 1116)
@@ -1300,7 +1300,6 @@
 		inode = NULL;
 		goto bail;
 	}
-	down_write(&OCFS_I(inode)->ip_io_sem);
 
 	l = strlen (symname) + 1;
 	newsize = l - 1;
@@ -1368,8 +1367,6 @@
 		goto abort_trans;
 	}
 
-	insert_inode_hash (inode);
-	d_instantiate (dentry, inode);
 
 abort_trans:
 	if (status < 0) {
@@ -1391,9 +1388,11 @@
 	}
 
 bail:
-	if (inode)
-		up_write(&OCFS_I(inode)->ip_io_sem);
-	up_write(&OCFS_I(dir)->ip_io_sem);
+	up(&OCFS_I(dir)->ip_io_sem);
+	if (status >= 0) {
+		insert_inode_hash (inode);
+		d_instantiate (dentry, inode);
+	}
 
 	if (new_fe_bh) {
 		if (fe)



More information about the Ocfs2-commits mailing list