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
- Lines: 17
- Date:
Sun Jan 4 00:54:04 1998
- Orig file:
v2.1.77/linux/fs/dcache.c
- Orig date:
Fri Dec 19 15:53:00 1997
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