patch-1.3.93 linux/fs/vfat/namei.c

Next file: linux/include/asm-sparc/asi.h
Previous file: linux/fs/nfs/proc.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.92/linux/fs/vfat/namei.c linux/fs/vfat/namei.c
@@ -1473,6 +1473,8 @@
 
 	vfat_read_inode(new_inode);
 	MSDOS_I(old_inode)->i_busy = 1;
+	MSDOS_I(old_inode)->i_linked = new_inode;
+	MSDOS_I(new_inode)->i_oldlink = old_inode;
 	fat_cache_inval_inode(old_inode);
 	PRINTK(("vfat_rename 15: old_slots=%d\n",old_slots));
 	old_inode->i_dirt = 1;
@@ -1493,7 +1495,6 @@
 
 	mark_buffer_dirty(new_bh, 1);
 	dcache_add(new_dir, new_name, new_len, new_ino);
-	iput(new_inode);
 
 	/* XXX: There is some code in the original MSDOS rename that
 	 * is not duplicated here and it might cause a problem in

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this