@@ -1462,9 +1462,8 @@ static int generic_ci_d_hash(const struct dentry *dentry, struct qstr *str)
return 0;
}
-static int generic_ci_d_revalidate(struct dentry *dentry,
- const struct qstr *name,
- unsigned int flags)
+static int ci_d_revalidate(struct dentry *dentry, const struct qstr *name,
+ unsigned int flags)
{
const struct dentry *parent;
const struct inode *dir;
@@ -1515,6 +1514,15 @@ static int generic_ci_d_revalidate(struct dentry *dentry,
return 1;
}
+static int generic_ci_d_revalidate(struct dentry *dentry,
+ const struct qstr *name,
+ unsigned int flags)
+{
+ if (!ci_d_revalidate(dentry, name, flags))
+ return 0;
+ return fscrypt_d_revalidate(dentry, name, flags);
+}
+
static const struct dentry_operations generic_ci_dentry_ops = {
.d_hash = generic_ci_d_hash,
.d_compare = generic_ci_d_compare,
@@ -1532,7 +1540,7 @@ static const struct dentry_operations generic_encrypted_dentry_ops = {
static const struct dentry_operations generic_encrypted_ci_dentry_ops = {
.d_hash = generic_ci_d_hash,
.d_compare = generic_ci_d_compare,
- .d_revalidate = fscrypt_d_revalidate,
+ .d_revalidate = generic_ci_d_revalidate,
};
#endif