提交 829c28be 编写于 作者: A Amir Goldstein 提交者: Miklos Szeredi

ovl: use d_splice_alias() in place of d_add() in lookup

This is required for NFS export.
Signed-off-by: NAmir Goldstein <amir73il@gmail.com>
Signed-off-by: NMiklos Szeredi <mszeredi@redhat.com>
上级 0aceb53e
......@@ -982,9 +982,7 @@ struct dentry *ovl_lookup(struct inode *dir, struct dentry *dentry,
dput(index);
kfree(stack);
kfree(d.redirect);
d_add(dentry, inode);
return NULL;
return d_splice_alias(inode, dentry);
out_free_oe:
dentry->d_fsdata = NULL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册