• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/ecryptfs/

Lines Matching defs:inode

39  * ecryptfs_alloc_inode - allocate an ecryptfs inode
42 * Called to bring an inode into existence.
48 * Returns a pointer to a newly allocated inode, NULL otherwise
50 static struct inode *ecryptfs_alloc_inode(struct super_block *sb)
53 struct inode *inode = NULL;
61 inode = &inode_info->vfs_inode;
63 return inode;
68 * @inode: The ecryptfs inode
70 * This is used during the final destruction of the inode. All
71 * allocation of memory related to the inode, including allocated
73 * function also fput()'s the persistent file for the lower inode.
76 static void ecryptfs_destroy_inode(struct inode *inode)
80 inode_info = ecryptfs_inode_to_private(inode);
97 * @inode: The ecryptfs inode
99 * Set up the ecryptfs inode.
101 void ecryptfs_init_inode(struct inode *inode, struct inode *lower_inode)
103 ecryptfs_set_inode_lower(inode, lower_inode);
104 inode->i_ino = lower_inode->i_ino;
105 inode->i_version++;
106 inode->i_op = &ecryptfs_main_iops;
107 inode->i_fop = &ecryptfs_main_fops;
108 inode->i_mapping->a_ops = &ecryptfs_aops;
130 * @inode - The ecryptfs inode
132 * Called by iput() when the inode reference count reached zero
133 * and the inode is not hashed anywhere. Used to clear anything
134 * that needs to be, before the inode is completely destroyed and put
135 * on the inode free list. We use this to drop out reference to the
136 * lower inode.
138 static void ecryptfs_evict_inode(struct inode *inode)
140 truncate_inode_pages(&inode->i_data, 0);
141 end_writeback(inode);
142 iput(ecryptfs_inode_to_lower(inode));