Lines Matching refs:inode_info
38 struct ecryptfs_inode_info *inode_info; in ecryptfs_alloc_inode() local
41 inode_info = alloc_inode_sb(sb, ecryptfs_inode_info_cache, GFP_KERNEL); in ecryptfs_alloc_inode()
42 if (unlikely(!inode_info)) in ecryptfs_alloc_inode()
44 ecryptfs_init_crypt_stat(&inode_info->crypt_stat); in ecryptfs_alloc_inode()
45 mutex_init(&inode_info->lower_file_mutex); in ecryptfs_alloc_inode()
46 atomic_set(&inode_info->lower_file_count, 0); in ecryptfs_alloc_inode()
47 inode_info->lower_file = NULL; in ecryptfs_alloc_inode()
48 inode = &inode_info->vfs_inode; in ecryptfs_alloc_inode()
55 struct ecryptfs_inode_info *inode_info; in ecryptfs_free_inode() local
56 inode_info = ecryptfs_inode_to_private(inode); in ecryptfs_free_inode()
58 kmem_cache_free(ecryptfs_inode_info_cache, inode_info); in ecryptfs_free_inode()
72 struct ecryptfs_inode_info *inode_info; in ecryptfs_destroy_inode() local
74 inode_info = ecryptfs_inode_to_private(inode); in ecryptfs_destroy_inode()
75 BUG_ON(inode_info->lower_file); in ecryptfs_destroy_inode()
76 ecryptfs_destroy_crypt_stat(&inode_info->crypt_stat); in ecryptfs_destroy_inode()