patch-2.2.0-pre8 linux/fs/dcache.c

Next file: linux/fs/exec.c
Previous file: linux/fs/buffer.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.0-pre7/linux/fs/dcache.c linux/fs/dcache.c
@@ -175,7 +175,7 @@
 	}
 
 	/*
-	 * Somebody still using it?
+	 * Somebody else still using it?
 	 *
 	 * If it's a directory, we can't drop it
 	 * for fear of somebody re-populating it
@@ -184,7 +184,7 @@
 	 * we might still populate it if it was a
 	 * working directory or similar).
 	 */
-	if (dentry->d_count) {
+	if (dentry->d_count > 1) {
 		if (dentry->d_inode && S_ISDIR(dentry->d_inode->i_mode))
 			return -EBUSY;
 	}
@@ -677,12 +677,11 @@
 	d_drop(dentry);
 }
 
-void d_add(struct dentry * entry, struct inode * inode)
+void d_rehash(struct dentry * entry)
 {
 	struct dentry * parent = entry->d_parent;
 
 	list_add(&entry->d_hash, d_hash(parent, entry->d_name.hash));
-	d_instantiate(entry, inode);
 }
 
 #define do_switch(x,y) do { \

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov