OSDN Git Service
(root)
/
uclinux-h8
/
linux.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
|
history
diff --git
a/fs/overlayfs/super.c
b/fs/overlayfs/super.c
index
40d4939
..
c0c02cc
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)