4 * Copyright (C) 1998 Carnegie Mellon University
8 #ifndef _LINUX_CODA_FS_I
9 #define _LINUX_CODA_FS_I
12 #include <linux/types.h>
13 #include <linux/list.h>
14 #include <linux/coda.h>
16 #define CODA_CNODE_MAGIC 0x47114711
20 struct coda_inode_info
{
21 struct ViceFid c_fid
; /* Coda identifier */
22 u_short c_flags
; /* flags (see below) */
23 struct list_head c_cnhead
; /* head of cache entries */
24 struct list_head c_volrootlist
; /* list of volroot cnoddes */
25 struct inode
*c_vnode
; /* inode associated with cnode */
26 int c_magic
; /* to verify the data structure */
30 #define C_VATTR 0x1 /* Validity of vattr in inode */
31 #define C_FLUSH 0x2 /* used after a flush */
32 #define C_DYING 0x4 /* from venus (which died) */
35 int coda_cnode_make(struct inode
**, struct ViceFid
*, struct super_block
*);
36 int coda_cnode_makectl(struct inode
**inode
, struct super_block
*sb
);
37 struct inode
*coda_fid_to_inode(ViceFid
*fid
, struct super_block
*sb
);
38 void coda_replace_fid(struct inode
*, ViceFid
*, ViceFid
*);