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

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