patch-1.3.99 linux/include/linux/affs_fs_i.h
Next file: linux/include/linux/affs_fs_sb.h
Previous file: linux/include/linux/affs_fs.h
Back to the patch index
Back to the overall index
-  Lines: 26
 -  Date:
Mon May  6 12:44:32 1996
 -  Orig file: 
v1.3.98/linux/include/linux/affs_fs_i.h
 -  Orig date: 
Tue Apr 23 13:57:13 1996
 
diff -u --recursive --new-file v1.3.98/linux/include/linux/affs_fs_i.h linux/include/linux/affs_fs_i.h
@@ -1,12 +1,25 @@
 #ifndef _AFFS_FS_I
 #define _AFFS_FS_I
 
+#define EXT_CACHE_SIZE	16
+#define MAX_PREALLOC	8	/* MUST be a power of 2 */
+
 /*
  * affs fs inode data in memory
  */
 struct affs_inode_info {
 	int i_protect;	/* unused attribute bits */
 	int i_parent;   /* parent ino */
+	int i_original;	/* if != 0, this is the key of the original */
+	__u32 i_ext[EXT_CACHE_SIZE]; /* extension block numbers */
+	__u32 i_data[MAX_PREALLOC]; /* preallocated blocks */
+	short i_max_ext; /* last known extension block */
+	short i_pa_cnt;	/* number of preallocated blocks */
+	short i_pa_next;  /* Index of next block in i_data[] */
+	short i_pa_last;  /* Index of next free slot in i_data[] */
+	short i_zone;	/* write zone */
+	unsigned char i_hlink;	/* This is a fake */
+	unsigned char i_pad;
 };
 
 #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