Skip to content

Commit 3e9d4c5

Browse files
author
Miklos Szeredi
committed
vfs: make vfs_tmpfile() static
No callers outside of fs/namei.c anymore. Reviewed-by: Christian Brauner (Microsoft) <[email protected]> Signed-off-by: Miklos Szeredi <[email protected]>
1 parent 2b1a774 commit 3e9d4c5

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

fs/namei.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3583,7 +3583,7 @@ static int do_open(struct nameidata *nd,
35833583
* On non-idmapped mounts or if permission checking is to be performed on the
35843584
* raw inode simply passs init_user_ns.
35853585
*/
3586-
struct dentry *vfs_tmpfile(struct user_namespace *mnt_userns,
3586+
static struct dentry *vfs_tmpfile(struct user_namespace *mnt_userns,
35873587
struct dentry *dentry, umode_t mode, int open_flag)
35883588
{
35893589
struct dentry *child = NULL;
@@ -3622,7 +3622,6 @@ struct dentry *vfs_tmpfile(struct user_namespace *mnt_userns,
36223622
dput(child);
36233623
return ERR_PTR(error);
36243624
}
3625-
EXPORT_SYMBOL(vfs_tmpfile);
36263625

36273626
/**
36283627
* vfs_tmpfile_open - open a tmpfile for kernel internal use

include/linux/fs.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2004,9 +2004,6 @@ static inline int vfs_whiteout(struct user_namespace *mnt_userns,
20042004
WHITEOUT_DEV);
20052005
}
20062006

2007-
struct dentry *vfs_tmpfile(struct user_namespace *mnt_userns,
2008-
struct dentry *dentry, umode_t mode, int open_flag);
2009-
20102007
struct file *vfs_tmpfile_open(struct user_namespace *mnt_userns,
20112008
const struct path *parentpath,
20122009
umode_t mode, int open_flag, const struct cred *cred);

0 commit comments

Comments
 (0)