projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4edb83b
)
ovl: cleanup d_real for negative
author
Miklos Szeredi
<mszeredi@redhat.com>
Mon, 4 Sep 2017 14:44:42 +0000
(16:44 +0200)
committer
Miklos 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
patch
|
blob
|
blame
|
history
diff --git
a/fs/overlayfs/super.c
b/fs/overlayfs/super.c
index 40d49390feb996c41e3b5150df172c58b2d728bc..c0c02cca776b3103c53885924db57ce084d45b69 100644
(file)
--- 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)