summaryrefslogtreecommitdiffstats
path: root/fs/hostfs
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2021-02-10 06:01:06 +0100
committerAl Viro <viro@zeniv.linux.org.uk>2021-03-13 04:15:21 +0100
commita612c07dd20107280751ceeb46692f7653bba424 (patch)
treef8b2db3ac4c1c8b4553f65a264052df09143edd5 /fs/hostfs
parentcifs: have cifs_fattr_to_inode() refuse to change type on live inode (diff)
downloadlinux-a612c07dd20107280751ceeb46692f7653bba424.tar.xz
linux-a612c07dd20107280751ceeb46692f7653bba424.zip
hostfs_mknod(): don't bother with init_special_inode()
read_name() in the end of hostfs_mknod() will DTRT Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/hostfs')
-rw-r--r--fs/hostfs/hostfs_kern.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/hostfs/hostfs_kern.c b/fs/hostfs/hostfs_kern.c
index 29e407762626..aed8c4f28ad3 100644
--- a/fs/hostfs/hostfs_kern.c
+++ b/fs/hostfs/hostfs_kern.c
@@ -712,7 +712,6 @@ static int hostfs_mknod(struct user_namespace *mnt_userns, struct inode *dir,
if (name == NULL)
goto out_put;
- init_special_inode(inode, mode, dev);
err = do_mknod(name, mode, MAJOR(dev), MINOR(dev));
if (err)
goto out_free;