ovl: cleanup d_real for negative
authorMiklos Szeredi <mszeredi@redhat.com>
Mon, 4 Sep 2017 14:44:42 +0000 (16:44 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Mon, 4 Sep 2017 14:44:42 +0000 (16:44 +0200)
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>
fs/overlayfs/super.c

index 40d49390feb996c41e3b5150df172c58b2d728bc..c0c02cca776b3103c53885924db57ce084d45b69 100644 (file)
@@ -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)