Thread (77 messages) 77 messages, 6 authors, 2025-11-18

Re: [PATCH v3 01/50] fuse_ctl_add_conn(): fix nlink breakage in case of early failure

From: Miklos Szeredi <miklos@szeredi.hu>
Date: 2025-11-11 10:22:51
Also in: bpf, linux-efi, linux-fsdevel, linux-mm, linux-usb, ocfs2-devel, selinux

On Tue, 11 Nov 2025 at 07:55, Al Viro [off-list ref] wrote:
fuse_ctl_remove_conn() used to decrement the link count of root
manually; that got subsumed by simple_recursive_removal(), but
in case when subdirectory creation has failed the latter won't
get called.

Just move the modification of parent's link count into
fuse_ctl_add_dentry() to keep the things simple.  Allows to
get rid of the nlink argument as well...

Fixes: fcaac5b42768 "fuse_ctl: use simple_recursive_removal()"
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Acked-by: Miklos Szeredi <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help