5 #include <linux/types.h>
6 #include <linux/string.h>
7 #include <linux/time.h>
9 #include <linux/coda.h>
10 #include <linux/coda_psdev.h>
13 static inline int coda_fideq(
struct CodaFid *fid1,
struct CodaFid *fid2)
15 return memcmp(fid1, fid2,
sizeof(*fid1)) == 0;
37 inode->
i_op = &coda_symlink_inode_operations;
44 static int coda_test_inode(
struct inode *inode,
void *
data)
48 return coda_fideq(&cii->
c_fid, fid);
51 static int coda_set_inode(
struct inode *inode,
void *
data)
66 inode =
iget5_locked(sb, hash, coda_test_inode, coda_set_inode, fid);
81 coda_fill_inode(inode, attr);
100 return ERR_PTR(error);
104 printk(
"coda_cnode_make: coda_iget failed\n");
127 remove_inode_hash(inode);
128 cii->
c_fid = *newfid;
140 printk(
"coda_fid_to_inode: no sb!\n");
144 inode =
ilookup5(sb, hash, coda_test_inode, fid);