patch-2.4.19 linux-2.4.19/include/linux/coda_fs_i.h
Next file: linux-2.4.19/include/linux/coda_linux.h
Previous file: linux-2.4.19/include/linux/cciss_ioctl.h
Back to the patch index
Back to the overall index
- Lines: 27
- Date:
Fri Aug 2 17:39:45 2002
- Orig file:
linux-2.4.18/include/linux/coda_fs_i.h
- Orig date:
Mon Feb 25 11:38:13 2002
diff -urN linux-2.4.18/include/linux/coda_fs_i.h linux-2.4.19/include/linux/coda_fs_i.h
@@ -20,12 +20,24 @@
struct ViceFid c_fid; /* Coda identifier */
u_short c_flags; /* flags (see below) */
struct list_head c_cilist; /* list of all coda inodes */
- struct file *c_container; /* container file for this cnode */
- unsigned int c_contcount; /* refcount for container file */
+ int c_mapcount; /* how often is this inode mmapped */
struct coda_cred c_cached_cred; /* credentials of cached perms */
unsigned int c_cached_perm; /* cached access permissions */
};
+/*
+ * coda fs file private data
+ */
+#define CODA_MAGIC 0xC0DAC0DA
+struct coda_file_info {
+ int cfi_magic; /* magic number */
+ int cfi_mapcount; /* how often this file is mapped */
+ struct file *cfi_container; /* container file for this cnode */
+ struct coda_cred cfi_cred; /* credentials of opener */
+};
+
+#define CODA_FTOC(file) ((struct coda_file_info *)((file)->private_data))
+
/* flags */
#define C_VATTR 0x1 /* Validity of vattr in inode */
#define C_FLUSH 0x2 /* used after a flush */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)