mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-14 15:54:15 +08:00
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: Miklos Szeredi <mszeredi@redhat.com>
This commit is contained in:
parent
4edb83bb10
commit
191a3980c6
@ -81,9 +81,6 @@ static struct dentry *ovl_d_real(struct dentry *dentry,
|
||||
goto bug;
|
||||
}
|
||||
|
||||
if (d_is_negative(dentry))
|
||||
return dentry;
|
||||
|
||||
if (open_flags) {
|
||||
err = ovl_open_maybe_copy_up(dentry, open_flags);
|
||||
if (err)
|
||||
|
Loading…
Reference in New Issue
Block a user