patch-2.3.51 linux/include/linux/dcache.h

Next file: linux/include/linux/efs_fs.h
Previous file: linux/include/linux/brlock.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.50/linux/include/linux/dcache.h linux/include/linux/dcache.h
@@ -191,6 +191,11 @@
 	return dentry;
 }
 
+static __inline__ int d_unhashed(struct dentry *dentry)
+{
+	return list_empty(&dentry->d_hash);
+}
+
 extern void dput(struct dentry *);
 
 #endif /* __KERNEL__ */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)