Import 2.3.6
[davej-history.git] / include / linux / coda_fs_i.h
blobbaa136b97b014b28991715b9d65f40a811230d7e
1 /*
2 * coda_fs_i.h
4 * Copyright (C) 1998 Carnegie Mellon University
6 */
8 #ifndef _LINUX_CODA_FS_I
9 #define _LINUX_CODA_FS_I
11 #ifdef __KERNEL__
12 #include <linux/types.h>
13 #include <linux/list.h>
14 #include <linux/coda.h>
18 #define CODA_CNODE_MAGIC 0x47114711
20 * coda fs inode data
22 struct coda_inode_info {
23 struct ViceFid c_fid; /* Coda identifier */
24 u_short c_flags; /* flags (see below) */
25 u_short c_ocount; /* count of openers */
26 u_short c_owrite; /* count of open for write */
27 u_short c_mmcount; /* count of mmappers */
28 struct inode *c_ovp; /* open inode pointer */
29 struct list_head c_cnhead; /* head of cache entries */
30 struct list_head c_volrootlist; /* list of volroot cnoddes */
31 struct inode *c_vnode; /* inode associated with cnode */
32 int c_magic; /* to verify the data structure */
35 /* flags */
36 #define C_VATTR 0x1 /* Validity of vattr in inode */
37 #define C_PURGE 0x8
38 #define C_ZAPDIR 0x10
39 #define C_DYING 0x4 /* from venus (which died) */
40 #define C_INITED 0x20
41 #define C_FLUSH 0x2 /* used after a flush */
43 int coda_cnode_make(struct inode **, struct ViceFid *, struct super_block *);
44 int coda_cnode_makectl(struct inode **inode, struct super_block *sb);
45 struct inode *coda_fid_to_inode(ViceFid *fid, struct super_block *sb);
46 void coda_replace_fid(struct inode *, ViceFid *, ViceFid *);
48 #endif
49 #endif