git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mm: add file_inode for easier backporting
[pandora-kernel.git]
/
include
/
linux
/
fs.h
diff --git
a/include/linux/fs.h
b/include/linux/fs.h
index
b2ccd1e
..
52c56f1
100644
(file)
--- a/
include/linux/fs.h
+++ b/
include/linux/fs.h
@@
-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;