From ed6f750f9820efcb7eeb1ec9fd0990e03ccffbab Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Tue, 29 Sep 2026 13:26:15 +1000 Subject: [PATCH] fuse: don't d_drop() before d_splice_alias() create_new_entry() is used to finalise the creation of various objects (mknod, mkdir, symlink etc). It currently uses d_drop() which will be a problem for a proposed new locking scheme. d_splice_alias() now works on hashed dentries so the d_drop() isn't needed. Drop it. Signed-off-by: NeilBrown Signed-off-by: Miklos Szeredi --- fs/fuse/dir.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/fuse/dir.c b/fs/fuse/dir.c index f48fafccce4b..4ee40f22500e 100644 --- a/fs/fuse/dir.c +++ b/fs/fuse/dir.c @@ -1031,7 +1031,6 @@ static struct dentry *create_new_entry(struct mnt_idmap *idmap, struct fuse_moun } kfree(forget); - d_drop(entry); d = d_splice_alias(inode, entry); if (IS_ERR(d)) return d;