patch-2.2.0-pre8 linux/include/linux/dcache.h

Next file: linux/include/linux/fs.h
Previous file: linux/include/linux/cdrom.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.0-pre7/linux/include/linux/dcache.h linux/include/linux/dcache.h
@@ -150,10 +150,18 @@
 extern int is_root_busy(struct dentry *);
 
 /*
+ * This adds the entry to the hash queues.
+ */
+extern void d_rehash(struct dentry * entry);
+/*
  * This adds the entry to the hash queues and initializes "d_inode".
  * The entry was actually filled in earlier during "d_alloc()"
  */
-extern void d_add(struct dentry * entry, struct inode * inode);
+static __inline__ void d_add(struct dentry * entry, struct inode * inode)
+{
+	d_rehash(entry);
+	d_instantiate(entry, inode);
+}
 
 /* used for rename() and baskets */
 extern void d_move(struct dentry * entry, struct dentry * newdentry);

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