Skip to content

Commit a612c07

Browse files
author
Al Viro
committed
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>
1 parent 4d66952 commit a612c07

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

fs/hostfs/hostfs_kern.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,6 @@ static int hostfs_mknod(struct user_namespace *mnt_userns, struct inode *dir,
712712
if (name == NULL)
713713
goto out_put;
714714

715-
init_special_inode(inode, mode, dev);
716715
err = do_mknod(name, mode, MAJOR(dev), MINOR(dev));
717716
if (err)
718717
goto out_free;

0 commit comments

Comments
 (0)