提交 1fa97e8b 编写于 作者: A Al Viro

constify file_inode()

Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 19d860a1
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册