mm: add file_inode for easier backporting
[pandora-kernel.git] / include / linux / fs.h
index b2ccd1e..52c56f1 100644 (file)
@@ -1977,6 +1977,11 @@ extern bool our_mnt(struct vfsmount *mnt);
 
 extern int current_umask(void);
 
+static inline struct inode *file_inode(struct file *f)
+{
+       return f->f_dentry->d_inode;
+}
+
 /* /sys/fs */
 extern struct kobject *fs_kobj;