Signed-off-by: Kirill Tkhai <ktk...@virtuozzo.com> --- fs/file_table.c | 3 ++- include/linux/file.h | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/fs/file_table.c b/fs/file_table.c index 45437f8e1003..f624f1a069e8 100644 --- a/fs/file_table.c +++ b/fs/file_table.c @@ -184,7 +184,7 @@ struct file *alloc_empty_file_noaccount(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 */ -static struct file *alloc_file(const struct path *path, int flags, +struct file *alloc_file(const struct path *path, int flags, const struct file_operations *fop) { struct file *file; @@ -210,6 +210,7 @@ static 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, diff --git a/include/linux/file.h b/include/linux/file.h index 2de2e4613d7b..bdaefc80bb28 100644 --- a/include/linux/file.h +++ b/include/linux/file.h @@ -22,6 +22,8 @@ struct vfsmount; struct dentry; struct inode; struct path; +extern struct file *alloc_file(const struct path *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, _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel