diff options
author | Miklos Szeredi <mszeredi@redhat.com> | 2017-09-04 16:44:42 +0200 |
---|---|---|
committer | Miklos Szeredi <mszeredi@redhat.com> | 2017-09-04 16:44:42 +0200 |
commit | 191a3980c6161d40c32e69273e0567615be17001 (patch) | |
tree | a38449ea896658b2f64999dfe56d006ef8a8fd5a /fs | |
parent | 4edb83bb1041e2f946ce36ea93f6bcd06d984bf4 (diff) | |
download | op-kernel-dev-191a3980c6161d40c32e69273e0567615be17001.zip op-kernel-dev-191a3980c6161d40c32e69273e0567615be17001.tar.gz |
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')
-rw-r--r-- | fs/overlayfs/super.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/overlayfs/super.c b/fs/overlayfs/super.c index 40d4939..c0c02cc 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) |