29 #include <linux/slab.h>
34 #include <linux/magic.h>
72 inode_info = ecryptfs_inode_to_private(inode);
86 static void ecryptfs_destroy_inode(
struct inode *
inode)
90 inode_info = ecryptfs_inode_to_private(inode);
106 struct dentry *lower_dentry = ecryptfs_dentry_to_lower(dentry);
109 if (!lower_dentry->
d_sb->s_op->statfs)
112 rc = lower_dentry->
d_sb->s_op->statfs(lower_dentry, buf);
118 &ecryptfs_superblock_to_private(dentry->
d_sb)->mount_crypt_stat);
133 static void ecryptfs_evict_inode(
struct inode *
inode)
137 iput(ecryptfs_inode_to_lower(inode));
146 static int ecryptfs_show_options(
struct seq_file *
m,
struct dentry *root)
150 &ecryptfs_superblock_to_private(sb)->mount_crypt_stat;
179 seq_printf(m,
",ecryptfs_mount_auth_tok_only");
185 .alloc_inode = ecryptfs_alloc_inode,
186 .destroy_inode = ecryptfs_destroy_inode,
187 .statfs = ecryptfs_statfs,
189 .evict_inode = ecryptfs_evict_inode,
190 .show_options = ecryptfs_show_options