patch-2.3.99-pre3 linux/include/linux/nfs_fs_i.h

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

diff -u --recursive --new-file v2.3.99-pre2/linux/include/linux/nfs_fs_i.h linux/include/linux/nfs_fs_i.h
@@ -42,10 +42,19 @@
 
 	/*
 	 * This is the list of dirty unwritten pages.
-	 * NFSv3 will want to add a list for written but uncommitted
-	 * pages.
 	 */
-	struct nfs_wreq *	writeback;
+	struct list_head	dirty;
+	struct list_head	commit;
+	struct list_head	writeback;
+
+	unsigned int		ndirty,
+				ncommit,
+				npages;
+
+	/* Flush daemon info */
+	struct inode		*hash_next,
+				*hash_prev;
+	unsigned long		nextscan;
 
 	/* Readdir caching information. */
 	void *cookies;
@@ -55,8 +64,9 @@
 /*
  * Legal inode flag values
  */
-#define NFS_INO_REVALIDATING	0x0001		/* revalidating attrs */
+#define NFS_INO_REVALIDATING	0x0004		/* revalidating attrs */
 #define NFS_IS_SNAPSHOT		0x0010		/* a snapshot file */
+#define NFS_INO_FLUSH		0x0020		/* inode is due for flushing */
 
 /*
  * NFS lock info

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)