提交 2d8a10cd 编写于 作者: A Al Viro

[PATCH] fix efs_lookup()

it needs to use d_splice_alias(), not d_add()
Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 cc996099
......@@ -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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册