summaryrefslogtreecommitdiffstats
path: root/include/linux/fs.h
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2014-05-07 20:47:49 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2014-10-09 02:39:00 -0400
commit1fa97e8b1f327059aa98089abd8c3378cdf43017 (patch)
treeaf9d5f877acce4a828e34d39b03c4d8dbef7bc7b /include/linux/fs.h
parent19d860a140beac48a1377f179e693abe86a9dac9 (diff)
downloadlinux-1fa97e8b1f327059aa98089abd8c3378cdf43017.tar.gz
linux-1fa97e8b1f327059aa98089abd8c3378cdf43017.tar.bz2
linux-1fa97e8b1f327059aa98089abd8c3378cdf43017.zip
constify file_inode()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r--include/linux/fs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 94187721ad41..75bdd51ec9b8 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -1874,7 +1874,7 @@ extern int current_umask(void);
extern void ihold(struct inode * inode);
extern void iput(struct inode *);
-static inline struct inode *file_inode(struct file *f)
+static inline struct inode *file_inode(const struct file *f)
{
return f->f_inode;
}