patch-2.3.99-pre6 linux/fs/vfat/namei.c

Next file: linux/include/asm-alpha/elf.h
Previous file: linux/fs/umsdos/inode.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre5/linux/fs/vfat/namei.c linux/fs/vfat/namei.c
@@ -1080,9 +1080,6 @@
 	struct buffer_head *bh = NULL;
 	struct msdos_dir_entry *de;
 
-	if (!d_unhashed(dentry))
-		return -EBUSY;
-
 	res = fat_dir_empty(dentry->d_inode);
 	if (res)
 		return res;
@@ -1202,9 +1199,6 @@
 		}
 
 		if (is_dir) {
-			res =-EBUSY;
-			if (!d_unhashed(new_dentry))
-				goto rename_done;
 			res = fat_dir_empty(new_inode);
 			if (res)
 				goto rename_done;

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