提交 191a3980 编写于 作者: M Miklos Szeredi

ovl: cleanup d_real for negative

d_real() is never called with a negative dentry.  So remove the
d_is_negative() check (which would never trigger anyway, since d_is_reg()
returns false for a negative dentry).
Signed-off-by: NMiklos Szeredi <mszeredi@redhat.com>
上级 4edb83bb
...@@ -81,9 +81,6 @@ static struct dentry *ovl_d_real(struct dentry *dentry, ...@@ -81,9 +81,6 @@ static struct dentry *ovl_d_real(struct dentry *dentry,
goto bug; goto bug;
} }
if (d_is_negative(dentry))
return dentry;
if (open_flags) { if (open_flags) {
err = ovl_open_maybe_copy_up(dentry, open_flags); err = ovl_open_maybe_copy_up(dentry, open_flags);
if (err) if (err)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册