Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2d8a10cd authored by Al Viro's avatar Al Viro
Browse files

[PATCH] fix efs_lookup()



it needs to use d_splice_alias(), not d_add()

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent cc996099
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -74,8 +74,7 @@ struct dentry *efs_lookup(struct inode *dir, struct dentry *dentry, struct namei
	}
	unlock_kernel();

	d_add(dentry, inode);
	return NULL;
	return d_splice_alias(inode, dentry);
}

static struct inode *efs_nfs_get_inode(struct super_block *sb, u64 ino,