patch-1.3.67 linux/include/linux/nfs_fs_i.h

Next file: linux/include/net/sock.h
Previous file: linux/include/linux/nfs_fs.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.66/linux/include/linux/nfs_fs_i.h linux/include/linux/nfs_fs_i.h
@@ -8,6 +8,18 @@
  */
 struct nfs_inode_info {
 	struct nfs_fh fhandle;
+	/*
+	 * read_cache_jiffies is when we started read-caching this inode,
+	 * and read_cache_mtime is the mtime of the inode at that time.
+	 *
+	 * We need to invalidate the cache for this inode if
+	 *
+	 *	jiffies - read_cache_jiffies > 30*HZ
+	 * AND
+	 *	mtime != read_cache_mtime
+	 */
+	unsigned long read_cache_jiffies;
+	unsigned long read_cache_mtime;
 };
 
 #endif

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