diff options
Diffstat (limited to 'fs/coda/cnode.c')
-rw-r--r-- | fs/coda/cnode.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/fs/coda/cnode.c b/fs/coda/cnode.c index e2dcf2addf3f..06855f6c7902 100644 --- a/fs/coda/cnode.c +++ b/fs/coda/cnode.c | |||
@@ -148,6 +148,16 @@ struct inode *coda_fid_to_inode(struct CodaFid *fid, struct super_block *sb) | |||
148 | return inode; | 148 | return inode; |
149 | } | 149 | } |
150 | 150 | ||
151 | struct coda_file_info *coda_ftoc(struct file *file) | ||
152 | { | ||
153 | struct coda_file_info *cfi = file->private_data; | ||
154 | |||
155 | BUG_ON(!cfi || cfi->cfi_magic != CODA_MAGIC); | ||
156 | |||
157 | return cfi; | ||
158 | |||
159 | } | ||
160 | |||
151 | /* the CONTROL inode is made without asking attributes from Venus */ | 161 | /* the CONTROL inode is made without asking attributes from Venus */ |
152 | struct inode *coda_cnode_makectl(struct super_block *sb) | 162 | struct inode *coda_cnode_makectl(struct super_block *sb) |
153 | { | 163 | { |