patch-2.1.43 linux/fs/fat/dir.c

Next file: linux/fs/fat/file.c
Previous file: linux/fs/ext2/symlink.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.42/linux/fs/fat/dir.c linux/fs/fat/dir.c
@@ -260,10 +260,8 @@
 					ino = fat_parent_ino(inode,0);
 
 				if (shortnames || !is_long) {
-					dcache_add(inode, bufname, i+dotoffset, ino);
-					if (both) {
+					if (both)
 						bufname[i+dotoffset] = '\0';
-					}
 					spos = oldpos;
 					if (is_long) {
 						spos = filp->f_pos - sizeof(struct msdos_dir_entry);
@@ -276,7 +274,6 @@
 					}
 				}
 				if (is_long && longnames) {
-					dcache_add(inode, longname, long_len, ino);
 					if (both) {
 						memcpy(&longname[long_len+1], bufname, i+dotoffset);
 						long_len += i+dotoffset;

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