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

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
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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
 * 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 *child = NULL;
@@ -3622,7 +3622,6 @@ struct dentry *vfs_tmpfile(struct user_namespace *mnt_userns,
	dput(child);
	return ERR_PTR(error);
}
EXPORT_SYMBOL(vfs_tmpfile);

/**
 * vfs_tmpfile_open - open a tmpfile for kernel internal use
+0 −3
Original line number Diff line number Diff line
@@ -2004,9 +2004,6 @@ static inline int vfs_whiteout(struct user_namespace *mnt_userns,
			 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,
			const struct path *parentpath,
			umode_t mode, int open_flag, const struct cred *cred);