From: Miklos Szeredi Date: Mon, 4 Sep 2017 14:44:42 +0000 (+0200) Subject: ovl: cleanup d_real for negative X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=191a3980c6161d40c32e69273e0567615be17001;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 --- diff --git a/fs/overlayfs/super.c b/fs/overlayfs/super.c index 40d49390feb9..c0c02cca776b 100644 --- a/fs/overlayfs/super.c +++ b/fs/overlayfs/super.c @@ -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)