vfs: switch ->show_options() to struct dentry *
[deliverable/linux.git] / fs / ecryptfs / super.c
index 245b517bf1b65ec5dc5dfa294891e40038d201d7..9df7fd6e0c398d91a42c5c5627ea1e88ec868412 100644 (file)
@@ -69,7 +69,6 @@ static void ecryptfs_i_callback(struct rcu_head *head)
        struct ecryptfs_inode_info *inode_info;
        inode_info = ecryptfs_inode_to_private(inode);
 
-       INIT_LIST_HEAD(&inode->i_dentry);
        kmem_cache_free(ecryptfs_inode_info_cache, inode_info);
 }
 
@@ -92,22 +91,6 @@ static void ecryptfs_destroy_inode(struct inode *inode)
        call_rcu(&inode->i_rcu, ecryptfs_i_callback);
 }
 
-/**
- * ecryptfs_init_inode
- * @inode: The ecryptfs inode
- *
- * Set up the ecryptfs inode.
- */
-void ecryptfs_init_inode(struct inode *inode, struct inode *lower_inode)
-{
-       ecryptfs_set_inode_lower(inode, lower_inode);
-       inode->i_ino = lower_inode->i_ino;
-       inode->i_version++;
-       inode->i_op = &ecryptfs_main_iops;
-       inode->i_fop = &ecryptfs_main_fops;
-       inode->i_mapping->a_ops = &ecryptfs_aops;
-}
-
 /**
  * ecryptfs_statfs
  * @sb: The ecryptfs super block
@@ -148,9 +131,9 @@ static void ecryptfs_evict_inode(struct inode *inode)
  * Prints the mount options for a given superblock.
  * Returns zero; does not fail.
  */
-static int ecryptfs_show_options(struct seq_file *m, struct vfsmount *mnt)
+static int ecryptfs_show_options(struct seq_file *m, struct dentry *root)
 {
-       struct super_block *sb = mnt->mnt_sb;
+       struct super_block *sb = root->d_sb;
        struct ecryptfs_mount_crypt_stat *mount_crypt_stat =
                &ecryptfs_superblock_to_private(sb)->mount_crypt_stat;
        struct ecryptfs_global_auth_tok *walker;
This page took 0.028055 seconds and 5 git commands to generate.