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

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

diff -u --recursive --new-file v2.1.86/linux/fs/vfat/namei.c linux/fs/vfat/namei.c
@@ -1761,12 +1761,15 @@
 	new_inode->i_mtime  = old_inode->i_mtime;
 	new_inode->i_atime  = old_inode->i_atime;
 	new_inode->i_ctime  = old_inode->i_ctime;
+	new_inode->i_nlink  = old_inode->i_nlink;
+	new_inode->i_op     = old_inode->i_op;
 	MSDOS_I(new_inode)->i_ctime_ms = MSDOS_I(old_inode)->i_ctime_ms;
 
 	MSDOS_I(new_inode)->i_start = MSDOS_I(old_inode)->i_start;
 	MSDOS_I(new_inode)->i_logstart = MSDOS_I(old_inode)->i_logstart;
 	MSDOS_I(new_inode)->i_attrs = MSDOS_I(old_inode)->i_attrs;
 
+	fat_cache_inval_inode(old_inode);
 	mark_inode_dirty(new_inode);
 
 	old_dir->i_version = ++event;

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