29 #include <linux/slab.h>
47 struct dentry *lower_dentry;
54 lower_dentry = ecryptfs_dentry_to_lower(dentry);
55 lower_mnt = ecryptfs_dentry_to_lower_mnt(dentry);
56 if (!lower_dentry->
d_op || !lower_dentry->
d_op->d_revalidate)
58 rc = lower_dentry->
d_op->d_revalidate(lower_dentry, flags);
60 struct inode *lower_inode =
61 ecryptfs_inode_to_lower(dentry->
d_inode);
77 static void ecryptfs_d_release(
struct dentry *dentry)
79 if (ecryptfs_dentry_to_private(dentry)) {
80 if (ecryptfs_dentry_to_lower(dentry)) {
81 dput(ecryptfs_dentry_to_lower(dentry));
82 mntput(ecryptfs_dentry_to_lower_mnt(dentry));
85 ecryptfs_dentry_to_private(dentry));
91 .d_revalidate = ecryptfs_d_revalidate,
92 .d_release = ecryptfs_d_release,