author: Fabian Frederick <fabf@skynet.be> 2019-07-16 16:29:09 -0700
committer: Linus Torvalds <torvalds@linux-foundation.org> 2019-07-16 19:23:23 -0700
commit: 5bb44810f47a00b608ed2cb9f892ae7ce37b02bd
parent: 7f6118ce95d2673f8c936dd47d9bbeb60f4d16ad
Commit Summary:
Diffstat:
1 file changed, 7 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)
return inode;
}
+struct coda_file_info *coda_ftoc(struct file *file)
+{
+ struct coda_file_info *cfi = file->private_data;
+
+ BUG_ON(!cfi || cfi->cfi_magic != CODA_MAGIC);
+
+ return cfi;
+
+}
+
/* the CONTROL inode is made without asking attributes from Venus */
struct inode *coda_cnode_makectl(struct super_block *sb)
{