patch-2.4.0-test7 linux/fs/namei.c

Next file: linux/fs/ncpfs/dir.c
Previous file: linux/fs/minix/dir.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test6/linux/fs/namei.c linux/fs/namei.c
@@ -1690,7 +1690,8 @@
 		triple_up(&old_dir->i_zombie,
 			  &new_dir->i_zombie,
 			  &target->i_zombie);
-		d_rehash(new_dentry);
+		if (d_unhashed(new_dentry))
+			d_rehash(new_dentry);
 		dput(new_dentry);
 	} else
 		double_up(&old_dir->i_zombie,

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)