Add file_get_inode() for symmetry with dir_get_inode().
[pintos-anon] / src / filesys / file.h
index dc05332f8b3b007d49b99214f20cfa819c3a0d20..a33c5af49f7c9c29142b234290e7c1969b9f54cb 100644 (file)
@@ -9,6 +9,7 @@ struct inode;
 struct file *file_open (struct inode *);
 struct file *file_reopen (struct file *);
 void file_close (struct file *);
+struct inode *file_get_inode (struct file *);
 
 /* Reading and writing. */
 off_t file_read (struct file *, void *, off_t);