patch-2.2.0-final linux/fs/vfat/namei.c

Next file: linux/include/asm-alpha/core_polaris.h
Previous file: linux/fs/proc/array.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.0-pre9/linux/fs/vfat/namei.c linux/fs/vfat/namei.c
@@ -1657,9 +1657,9 @@
 			drop_aliases(new_dentry);
 		}
 		res = vfat_remove_entry(new_dir,&sinfo,new_inode);
+		if (res)
+			goto rename_done;
 	}
-	if (res)
-		goto rename_done;
 
 	/* Serious lossage here. FAT uses braindead inode numbers scheme,
 	 * so we can't simply cannibalize the entry. It means that we have

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov