From: Al Viro Date: Wed, 10 Feb 2021 05:01:06 +0000 (-0500) Subject: hostfs_mknod(): don't bother with init_special_inode() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=a612c07dd20107280751ceeb46692f7653bba424;p=linux.git hostfs_mknod(): don't bother with init_special_inode() read_name() in the end of hostfs_mknod() will DTRT Signed-off-by: Al Viro --- diff --git a/fs/hostfs/hostfs_kern.c b/fs/hostfs/hostfs_kern.c index 29e4077626264..aed8c4f28ad37 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;