提交 a4141d7c 编写于 作者: A Al Viro

constify alloc_file()

Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 92872094
...@@ -155,7 +155,7 @@ struct file *get_empty_filp(void) ...@@ -155,7 +155,7 @@ struct file *get_empty_filp(void)
* @mode: the mode with which the new file will be opened * @mode: the mode with which the new file will be opened
* @fop: the 'struct file_operations' for the new file * @fop: the 'struct file_operations' for the new file
*/ */
struct file *alloc_file(struct path *path, fmode_t mode, struct file *alloc_file(const struct path *path, fmode_t mode,
const struct file_operations *fop) const struct file_operations *fop)
{ {
struct file *file; struct file *file;
......
...@@ -17,7 +17,7 @@ struct file_operations; ...@@ -17,7 +17,7 @@ struct file_operations;
struct vfsmount; struct vfsmount;
struct dentry; struct dentry;
struct path; struct path;
extern struct file *alloc_file(struct path *, fmode_t mode, extern struct file *alloc_file(const struct path *, fmode_t mode,
const struct file_operations *fop); const struct file_operations *fop);
static inline void fput_light(struct file *file, int fput_needed) static inline void fput_light(struct file *file, int fput_needed)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册