summaryrefslogtreecommitdiffstats
path: root/fs/overlayfs
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@redhat.com>2017-09-04 16:44:42 +0200
committerMiklos Szeredi <mszeredi@redhat.com>2017-09-04 16:44:42 +0200
commit191a3980c6161d40c32e69273e0567615be17001 (patch)
treea38449ea896658b2f64999dfe56d006ef8a8fd5a /fs/overlayfs
parent4edb83bb1041e2f946ce36ea93f6bcd06d984bf4 (diff)
downloadlinux-191a3980c6161d40c32e69273e0567615be17001.tar.bz2
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>
Diffstat (limited to 'fs/overlayfs')
-rw-r--r--fs/overlayfs/super.c3
1 files changed, 0 insertions, 3 deletions
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)