diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2021-02-10 08:01:06 +0300 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2021-03-13 06:15:21 +0300 |
commit | a612c07dd20107280751ceeb46692f7653bba424 (patch) | |
tree | f8b2db3ac4c1c8b4553f65a264052df09143edd5 | |
parent | 4d66952a2032cf6b65183fc4a8d8039304c70d48 (diff) | |
download | linux-a612c07dd20107280751ceeb46692f7653bba424.tar.xz |
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>
-rw-r--r-- | fs/hostfs/hostfs_kern.c | 1 |
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; |