Commit 3e9d4c59 authored by Miklos Szeredi's avatar Miklos Szeredi

vfs: make vfs_tmpfile() static

No callers outside of fs/namei.c anymore.
Reviewed-by: default avatarChristian Brauner (Microsoft) <brauner@kernel.org>
Signed-off-by: default avatarMiklos Szeredi <mszeredi@redhat.com>
parent 2b1a7746
...@@ -3583,7 +3583,7 @@ static int do_open(struct nameidata *nd, ...@@ -3583,7 +3583,7 @@ static int do_open(struct nameidata *nd,
* On non-idmapped mounts or if permission checking is to be performed on the * On non-idmapped mounts or if permission checking is to be performed on the
* raw inode simply passs init_user_ns. * raw inode simply passs init_user_ns.
*/ */
struct dentry *vfs_tmpfile(struct user_namespace *mnt_userns, static struct dentry *vfs_tmpfile(struct user_namespace *mnt_userns,
struct dentry *dentry, umode_t mode, int open_flag) struct dentry *dentry, umode_t mode, int open_flag)
{ {
struct dentry *child = NULL; struct dentry *child = NULL;
...@@ -3622,7 +3622,6 @@ struct dentry *vfs_tmpfile(struct user_namespace *mnt_userns, ...@@ -3622,7 +3622,6 @@ struct dentry *vfs_tmpfile(struct user_namespace *mnt_userns,
dput(child); dput(child);
return ERR_PTR(error); return ERR_PTR(error);
} }
EXPORT_SYMBOL(vfs_tmpfile);
/** /**
* vfs_tmpfile_open - open a tmpfile for kernel internal use * vfs_tmpfile_open - open a tmpfile for kernel internal use
......
...@@ -2004,9 +2004,6 @@ static inline int vfs_whiteout(struct user_namespace *mnt_userns, ...@@ -2004,9 +2004,6 @@ static inline int vfs_whiteout(struct user_namespace *mnt_userns,
WHITEOUT_DEV); WHITEOUT_DEV);
} }
struct dentry *vfs_tmpfile(struct user_namespace *mnt_userns,
struct dentry *dentry, umode_t mode, int open_flag);
struct file *vfs_tmpfile_open(struct user_namespace *mnt_userns, struct file *vfs_tmpfile_open(struct user_namespace *mnt_userns,
const struct path *parentpath, const struct path *parentpath,
umode_t mode, int open_flag, const struct cred *cred); umode_t mode, int open_flag, const struct cred *cred);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment