]> git.hungrycats.org Git - linux/commit
fuse: simplify fuse_dev_ioctl_clone()
authorMiklos Szeredi <mszeredi@redhat.com>
Thu, 2 Apr 2026 20:57:49 +0000 (22:57 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Mon, 15 Jun 2026 12:06:18 +0000 (14:06 +0200)
commita63607723108f8c4003c040ca7fd704c6340814b
tree0813063616709fc7156aaf0fecacbb2ed3f9da85
parent48649c0603bd355fb1d2c26ed4b6f635146278ea
fuse: simplify fuse_dev_ioctl_clone()

Don't need to check if the new device file is already initialized, since
fuse_dev_install_with_pq() will do that anyway.

Make fuse_dev_install_with_pq() return a boolean value indicating success so
that fuse_dev_ioctl_clone() can return an error in case of failure.

Move aborting the connection (setting fc->connected to zero) to
fuse_dev_install(), because it is not needed when the clone ioctl fails.

Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/fuse/dev.c