Loading fs/file_table.c +1 −2 Original line number Diff line number Diff line Loading @@ -157,7 +157,7 @@ struct file *alloc_empty_file(int flags, const struct cred *cred) * @flags: O_... flags with which the new file will be opened * @fop: the 'struct file_operations' for the new file */ struct file *alloc_file(const struct path *path, int flags, static struct file *alloc_file(const struct path *path, int flags, const struct file_operations *fop) { struct file *file; Loading @@ -182,7 +182,6 @@ struct file *alloc_file(const struct path *path, int flags, i_readcount_inc(path->dentry->d_inode); return file; } EXPORT_SYMBOL(alloc_file); struct file *alloc_file_pseudo(struct inode *inode, struct vfsmount *mnt, const char *name, int flags, Loading include/linux/file.h +0 −2 Original line number Diff line number Diff line Loading @@ -19,8 +19,6 @@ struct vfsmount; struct dentry; struct inode; struct path; extern struct file *alloc_file(const struct path *, int flags, const struct file_operations *fop); extern struct file *alloc_file_pseudo(struct inode *, struct vfsmount *, const char *, int flags, const struct file_operations *); extern struct file *alloc_file_clone(struct file *, int flags, Loading Loading
fs/file_table.c +1 −2 Original line number Diff line number Diff line Loading @@ -157,7 +157,7 @@ struct file *alloc_empty_file(int flags, const struct cred *cred) * @flags: O_... flags with which the new file will be opened * @fop: the 'struct file_operations' for the new file */ struct file *alloc_file(const struct path *path, int flags, static struct file *alloc_file(const struct path *path, int flags, const struct file_operations *fop) { struct file *file; Loading @@ -182,7 +182,6 @@ struct file *alloc_file(const struct path *path, int flags, i_readcount_inc(path->dentry->d_inode); return file; } EXPORT_SYMBOL(alloc_file); struct file *alloc_file_pseudo(struct inode *inode, struct vfsmount *mnt, const char *name, int flags, Loading
include/linux/file.h +0 −2 Original line number Diff line number Diff line Loading @@ -19,8 +19,6 @@ struct vfsmount; struct dentry; struct inode; struct path; extern struct file *alloc_file(const struct path *, int flags, const struct file_operations *fop); extern struct file *alloc_file_pseudo(struct inode *, struct vfsmount *, const char *, int flags, const struct file_operations *); extern struct file *alloc_file_clone(struct file *, int flags, Loading