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

Next file: linux/include/linux/genhd.h
Previous file: linux/include/linux/cyclades.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.115/linux/include/linux/dcache.h linux/include/linux/dcache.h
@@ -50,6 +50,8 @@
 	return end_name_hash(hash);
 }
 
+#define DNAME_INLINE_LEN 16
+
 struct dentry {
 	int d_count;
 	unsigned int d_flags;
@@ -68,6 +70,7 @@
 	struct super_block * d_sb;	/* The root of the dentry tree */
 	unsigned long d_reftime;	/* last time referenced */
 	void * d_fsdata;		/* fs-specific data */
+	unsigned char d_iname[DNAME_INLINE_LEN]; /* small names */
 };
 
 struct dentry_operations {
@@ -112,6 +115,11 @@
 {
 	list_del(&dentry->d_hash);
 	INIT_LIST_HEAD(&dentry->d_hash);
+}
+
+static __inline__ int dname_external(struct dentry *d)
+{
+	return d->d_name.name != d->d_iname; 
 }
 
 /*

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