mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
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 <neil@brown.name> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
This commit is contained in:
parent
e7ccc777a0
commit
ed6f750f98
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user