constify alloc_file()
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 21 Nov 2016 01:28:12 +0000 (20:28 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 6 Dec 2016 00:01:16 +0000 (19:01 -0500)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/file_table.c
include/linux/file.h

index ad17e05..6d982b5 100644 (file)
@@ -155,7 +155,7 @@ over:
  * @mode: the mode with which the new file will be opened
  * @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)
 {
        struct file *file;
index 7444f5f..61eb82c 100644 (file)
@@ -17,7 +17,7 @@ struct file_operations;
 struct vfsmount;
 struct dentry;
 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);
 
 static inline void fput_light(struct file *file, int fput_needed)