Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

constify alloc_file()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Al Viro a4141d7c 92872094

+2 -2
+1 -1
fs/file_table.c
··· 155 155 * @mode: the mode with which the new file will be opened 156 156 * @fop: the 'struct file_operations' for the new file 157 157 */ 158 - struct file *alloc_file(struct path *path, fmode_t mode, 158 + struct file *alloc_file(const struct path *path, fmode_t mode, 159 159 const struct file_operations *fop) 160 160 { 161 161 struct file *file;
+1 -1
include/linux/file.h
··· 17 17 struct vfsmount; 18 18 struct dentry; 19 19 struct path; 20 - extern struct file *alloc_file(struct path *, fmode_t mode, 20 + extern struct file *alloc_file(const struct path *, fmode_t mode, 21 21 const struct file_operations *fop); 22 22 23 23 static inline void fput_light(struct file *file, int fput_needed)