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:
46e5d0a
)
ovl: deal with overlay files in ovl_d_real()
author
Miklos Szeredi
<mszeredi@redhat.com>
Wed, 18 Jul 2018 13:44:41 +0000
(15:44 +0200)
committer
Miklos Szeredi
<mszeredi@redhat.com>
Wed, 18 Jul 2018 13:44:41 +0000
(15:44 +0200)
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
704b373
..
2119759
100644
(file)
--- a/
fs/overlayfs/super.c
+++ b/
fs/overlayfs/super.c
@@
-97,6
+97,10
@@
static struct dentry *ovl_d_real(struct dentry *dentry,
struct dentry *real;
int err;
+ /* It's an overlay file */
+ if (inode && d_inode(dentry) == inode)
+ return dentry;
+
if (flags & D_REAL_UPPER)
return ovl_dentry_upper(dentry);