Lines Matching refs:inode
25 * ecryptfs_alloc_inode - allocate an ecryptfs inode
28 * Called to bring an inode into existence.
34 * Returns a pointer to a newly allocated inode, NULL otherwise
36 static struct inode *ecryptfs_alloc_inode(struct super_block *sb)
39 struct inode *inode = NULL;
51 inode = &inode_info->vfs_inode;
53 return inode;
56 static void ecryptfs_free_inode(struct inode *inode)
59 inode_info = ecryptfs_inode_to_private(inode);
66 * @inode: The ecryptfs inode
68 * This is used during the final destruction of the inode. All
69 * allocation of memory related to the inode, including allocated
73 static void ecryptfs_destroy_inode(struct inode *inode)
77 inode_info = ecryptfs_inode_to_private(inode);
111 * @inode: The ecryptfs inode
113 * Called by iput() when the inode reference count reached zero
114 * and the inode is not hashed anywhere. Used to clear anything
115 * that needs to be, before the inode is completely destroyed and put
116 * on the inode free list. We use this to drop out reference to the
117 * lower inode.
119 static void ecryptfs_evict_inode(struct inode *inode)
121 truncate_inode_pages_final(&inode->i_data);
122 clear_inode(inode);
123 iput(ecryptfs_inode_to_lower(inode));