提交 ee1904ba 编写于 作者: A Al Viro

make alloc_file() static

Acked-by: NLinus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 4f089acc
...@@ -157,7 +157,7 @@ struct file *alloc_empty_file(int flags, const struct cred *cred) ...@@ -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 * @flags: O_... flags with which the new file will be opened
* @fop: the 'struct file_operations' for the new file * @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) const struct file_operations *fop)
{ {
struct file *file; struct file *file;
...@@ -182,7 +182,6 @@ struct file *alloc_file(const struct path *path, int flags, ...@@ -182,7 +182,6 @@ struct file *alloc_file(const struct path *path, int flags,
i_readcount_inc(path->dentry->d_inode); i_readcount_inc(path->dentry->d_inode);
return file; return file;
} }
EXPORT_SYMBOL(alloc_file);
struct file *alloc_file_pseudo(struct inode *inode, struct vfsmount *mnt, struct file *alloc_file_pseudo(struct inode *inode, struct vfsmount *mnt,
const char *name, int flags, const char *name, int flags,
......
...@@ -19,8 +19,6 @@ struct vfsmount; ...@@ -19,8 +19,6 @@ struct vfsmount;
struct dentry; struct dentry;
struct inode; struct inode;
struct path; 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 *, extern struct file *alloc_file_pseudo(struct inode *, struct vfsmount *,
const char *, int flags, const struct file_operations *); const char *, int flags, const struct file_operations *);
extern struct file *alloc_file_clone(struct file *, int flags, extern struct file *alloc_file_clone(struct file *, int flags,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册