提交 8966c5e0 编写于 作者: D David Woodhouse 提交者: Al Viro

[JFFS2] Use d_splice_alias() not d_add() in jffs2_lookup()

Now that JFFS2 can be exported by NFS, we need to get this right.
Signed-off-by: NDavid Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 c002a6c7
......@@ -108,9 +108,7 @@ static struct dentry *jffs2_lookup(struct inode *dir_i, struct dentry *target,
}
}
d_add(target, inode);
return NULL;
return d_splice_alias(inode, target);
}
/***********************************************************************/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册