patch-2.1.78 linux/fs/dcache.c

Next file: linux/fs/ext2/inode.c
Previous file: linux/fs/coda/symlink.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.77/linux/fs/dcache.c linux/fs/dcache.c
@@ -52,6 +52,8 @@
 
 static inline void d_free(struct dentry *dentry)
 {
+	if (dentry->d_op && dentry->d_op->d_release)
+		dentry->d_op->d_release(dentry);
 	kfree(dentry->d_name.name);
 	kfree(dentry);
 }
@@ -502,6 +504,7 @@
 	dentry->d_name.len = name->len;
 	dentry->d_name.hash = name->hash;
 	dentry->d_op = NULL;
+	dentry->d_fsdata = NULL;
 	return dentry;
 }
 

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