]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
vfs: make vfs_tmpfile() static
authorMiklos Szeredi <mszeredi@redhat.com>
Sat, 24 Sep 2022 05:00:00 +0000 (07:00 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Sat, 24 Sep 2022 05:00:00 +0000 (07:00 +0200)
No callers outside of fs/namei.c anymore.

Reviewed-by: Christian Brauner (Microsoft) <brauner@kernel.org>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/namei.c
include/linux/fs.h

index 81c388a813d35458b07c244becc1a1a24fdee13d..03ad4e55fb265f642804b07ab55d6a9e3fda7183 100644 (file)
@@ -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 @@ out_err:
        dput(child);
        return ERR_PTR(error);
 }
-EXPORT_SYMBOL(vfs_tmpfile);
 
 /**
  * vfs_tmpfile_open - open a tmpfile for kernel internal use
index 15fafda95dd3cfa39f48b4356ae693d4b1f0c874..02646542f6bb7a2e588f7737496f82836872fd05 100644 (file)
@@ -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);