Skip to content

Commit

Permalink
constify file_inode()
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed Oct 9, 2014
1 parent 19d860a commit 1fa97e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 1fa97e8

Please sign in to comment.