diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2018-10-01 13:57:05 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2018-10-08 08:36:58 +0200 |
commit | 46ade6ebdc0ab5a24ca44ed132579523a48a4493 (patch) | |
tree | 55abffaac5ac1ddb5ec1e1874b01549c753a987c /include | |
parent | f8dd51cc2bccbb138c4c6e6dc0531a153c8d96f6 (diff) | |
download | barebox-46ade6ebdc0ab5a24ca44ed132579523a48a4493.tar.gz barebox-46ade6ebdc0ab5a24ca44ed132579523a48a4493.tar.xz |
fs: implement file_inode
To ease code porting from Linux
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/fs.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index e2a69890f0..a29fd8fe4a 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -253,6 +253,11 @@ struct super_operations { void (*destroy_inode)(struct inode *); }; +static inline struct inode *file_inode(const struct file *f) +{ + return f->f_inode; +} + /* * Inode flags - they have no relation to superblock flags now */ |