]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
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 ad17e05ebf95f07888b15f2b09a7b37ac89b9710..6d982b57de9241de853b9ee592ff0564a0bad832 100644 (file)
@@ -155,7 +155,7 @@ struct file *get_empty_filp(void)
  * @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 7444f5feda12559b5bf5fd5dd564226da1157eeb..61eb82cbafbad4c61258cd8ab1754f60e3ca5910 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)