OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ceaec15
)
ecryptfs: check DCACHE_OP_REVALIDATE instead of ->d_op
author
Al Viro
<viro@zeniv.linux.org.uk>
Sun, 15 Sep 2013 23:41:16 +0000
(19:41 -0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Fri, 25 Oct 2013 03:34:47 +0000
(23:34 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/ecryptfs/dentry.c
patch
|
blob
|
history
diff --git
a/fs/ecryptfs/dentry.c
b/fs/ecryptfs/dentry.c
index
bf12ba5
..
46e31c9
100644
(file)
--- a/
fs/ecryptfs/dentry.c
+++ b/
fs/ecryptfs/dentry.c
@@
-51,7
+51,7
@@
static int ecryptfs_d_revalidate(struct dentry *dentry, unsigned int flags)
return -ECHILD;
lower_dentry = ecryptfs_dentry_to_lower(dentry);
- if (!
lower_dentry->d_op || !lower_dentry->d_op->d_revalidate
)
+ if (!
(lower_dentry->d_flags & DCACHE_OP_REVALIDATE)
)
goto out;
rc = lower_dentry->d_op->d_revalidate(lower_dentry, flags);
if (dentry->d_inode) {