patch-1.3.19 linux/fs/ext2/dir.c

Next file: linux/fs/hpfs/Makefile
Previous file: linux/fs/ext2/Makefile
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.18/linux/fs/ext2/dir.c linux/fs/ext2/dir.c
@@ -104,7 +104,7 @@
 	struct buffer_head * bh, * tmp, * bha[16];
 	struct ext2_dir_entry * de;
 	struct super_block * sb;
-	int err, version;
+	int err;
 
 	if (!inode || !S_ISDIR(inode->i_mode))
 		return -EBADF;
@@ -189,6 +189,8 @@
 				 * version stamp to detect whether or
 				 * not the directory has been modified
 				 * during the copy operation. */
+				unsigned long version;
+				dcache_add(inode, de->name, de->name_len, de->inode);
 				version = inode->i_version;
 				error = filldir(dirent, de->name, de->name_len, filp->f_pos, de->inode);
 				if (error)

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