提交 866d5dc9 编写于 作者: B Barry Naujok 提交者: Niv Sardi

[XFS] Remove d_add call for an ENOENT lookup return code

SGI-PV: 981521
SGI-Modid: xfs-linux-melb:xfs-kern:31214a
Signed-off-by: NBarry Naujok <bnaujok@sgi.com>
Signed-off-by: NDavid Chinner <dgc@sgi.com>
上级 d3689d76
......@@ -413,7 +413,11 @@ xfs_vn_ci_lookup(
if (unlikely(error)) {
if (unlikely(error != ENOENT))
return ERR_PTR(-error);
d_add(dentry, NULL);
/*
* call d_add(dentry, NULL) here when d_drop_negative_children
* is called in xfs_vn_mknod (ie. allow negative dentries
* with CI filesystems).
*/
return NULL;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册