patch-1.3.8 linux/fs/isofs/dir.c

Next file: linux/include/asm-alpha/socket.h
Previous file: linux/fs/ext2/namei.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.7/linux/fs/isofs/dir.c linux/fs/isofs/dir.c
@@ -231,6 +231,7 @@
 			/* rrflag == 1 means that we have a new name (kmalloced) */
 			if (rrflag == 1) {
 				rrflag = filldir(dirent, name, len, filp->f_pos, inode_number);
+				dcache_add(inode, name, len, inode_number);
 				kfree(name); /* this was allocated in get_r_r_filename.. */
 				if (rrflag < 0)
 					break;
@@ -243,6 +244,7 @@
 			len = isofs_name_translate(name, len, tmpname);
 			if (filldir(dirent, tmpname, len, filp->f_pos, inode_number) < 0)
 				break;
+			dcache_add(inode, tmpname, len, inode_number);
 			filp->f_pos += de_len;
 			continue;
 		}
@@ -250,6 +252,7 @@
 		if (filldir(dirent, name, len, filp->f_pos, inode_number) < 0)
 			break;
 
+		dcache_add(inode, name, len, inode_number);
 		filp->f_pos += de_len;
 		continue;
 	}

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