Lines Matching refs:crypt_stat
125 struct ecryptfs_crypt_stat *crypt_stat; in read_or_initialize_metadata() local
128 crypt_stat = &ecryptfs_inode_to_private(inode)->crypt_stat; in read_or_initialize_metadata()
131 mutex_lock(&crypt_stat->cs_mutex); in read_or_initialize_metadata()
133 if (crypt_stat->flags & ECRYPTFS_POLICY_APPLIED && in read_or_initialize_metadata()
134 crypt_stat->flags & ECRYPTFS_KEY_VALID) { in read_or_initialize_metadata()
144 crypt_stat->flags &= ~(ECRYPTFS_I_SIZE_INITIALIZED in read_or_initialize_metadata()
159 mutex_unlock(&crypt_stat->cs_mutex); in read_or_initialize_metadata()
188 struct ecryptfs_crypt_stat *crypt_stat = NULL; in ecryptfs_open() local
203 crypt_stat = &ecryptfs_inode_to_private(inode)->crypt_stat; in ecryptfs_open()
204 mutex_lock(&crypt_stat->cs_mutex); in ecryptfs_open()
205 if (!(crypt_stat->flags & ECRYPTFS_POLICY_APPLIED)) { in ecryptfs_open()
208 crypt_stat->flags |= (ECRYPTFS_POLICY_APPLIED in ecryptfs_open()
211 mutex_unlock(&crypt_stat->cs_mutex); in ecryptfs_open()