1
2
3
4
5
6
7
8
9 #ifndef _LINUX_CODA_FS_I
10 #define _LINUX_CODA_FS_I
11
12 #include <linux/types.h>
13 #include <linux/list.h>
14 #include <linux/spinlock.h>
15 #include <linux/coda.h>
16
17
18
19
20
21
22
23
24 struct coda_inode_info {
25 struct CodaFid c_fid;
26 u_short c_flags;
27 unsigned int c_mapcount;
28 unsigned int c_cached_epoch;
29 kuid_t c_uid;
30 unsigned int c_cached_perm;
31 spinlock_t c_lock;
32 struct inode vfs_inode;
33 };
34
35
36
37
38 #define CODA_MAGIC 0xC0DAC0DA
39 struct coda_file_info {
40 int cfi_magic;
41 struct file *cfi_container;
42 unsigned int cfi_mapcount;
43 bool cfi_access_intent;
44 };
45
46
47 #define C_VATTR 0x1
48 #define C_FLUSH 0x2
49 #define C_DYING 0x4
50 #define C_PURGE 0x8
51
52 struct inode *coda_cnode_make(struct CodaFid *, struct super_block *);
53 struct inode *coda_iget(struct super_block *sb, struct CodaFid *fid, struct coda_vattr *attr);
54 struct inode *coda_cnode_makectl(struct super_block *sb);
55 struct inode *coda_fid_to_inode(struct CodaFid *fid, struct super_block *sb);
56 struct coda_file_info *coda_ftoc(struct file *file);
57 void coda_replace_fid(struct inode *, struct CodaFid *, struct CodaFid *);
58
59 #endif