patch-2.1.75 linux/fs/namei.c
Next file: linux/fs/nfs/dir.c
Previous file: linux/fs/minix/namei.c
Back to the patch index
Back to the overall index
- Lines: 10
- Date:
Sun Dec 21 17:31:49 1997
- Orig file:
v2.1.74/linux/fs/namei.c
- Orig date:
Fri Dec 19 15:53:00 1997
diff -u --recursive --new-file v2.1.74/linux/fs/namei.c linux/fs/namei.c
@@ -843,6 +843,9 @@
if (dir->d_inode->i_sb && dir->d_inode->i_sb->dq_op)
dir->d_inode->i_sb->dq_op->initialize(dir->d_inode, -1);
+ if (dentry->d_count > 1)
+ shrink_dcache_parent(dentry);
+
error = dir->d_inode->i_op->rmdir(dir->d_inode, dentry);
exit_lock:
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov