Lines Matching refs:crypt_stat

69 			     struct ecryptfs_crypt_stat *crypt_stat)  in strip_xattr_flag()  argument
71 if (crypt_stat->flags & ECRYPTFS_METADATA_IN_XATTR) { in strip_xattr_flag()
74 crypt_stat->flags &= ~ECRYPTFS_METADATA_IN_XATTR; in strip_xattr_flag()
75 ecryptfs_write_crypt_stat_flags(page_virt, crypt_stat, in strip_xattr_flag()
77 crypt_stat->flags |= ECRYPTFS_METADATA_IN_XATTR; in strip_xattr_flag()
109 struct ecryptfs_crypt_stat *crypt_stat) in ecryptfs_copy_up_encrypted_with_header() argument
113 / crypt_stat->extent_size); in ecryptfs_copy_up_encrypted_with_header()
121 (crypt_stat->metadata_size / crypt_stat->extent_size); in ecryptfs_copy_up_encrypted_with_header()
135 strip_xattr_flag(page_virt + 16, crypt_stat); in ecryptfs_copy_up_encrypted_with_header()
137 crypt_stat, in ecryptfs_copy_up_encrypted_with_header()
150 ((view_extent_num * crypt_stat->extent_size) in ecryptfs_copy_up_encrypted_with_header()
151 - crypt_stat->metadata_size); in ecryptfs_copy_up_encrypted_with_header()
156 crypt_stat->extent_size, page->mapping->host); in ecryptfs_copy_up_encrypted_with_header()
182 struct ecryptfs_crypt_stat *crypt_stat = in ecryptfs_readpage() local
183 &ecryptfs_inode_to_private(page->mapping->host)->crypt_stat; in ecryptfs_readpage()
186 if (!crypt_stat || !(crypt_stat->flags & ECRYPTFS_ENCRYPTED)) { in ecryptfs_readpage()
190 } else if (crypt_stat->flags & ECRYPTFS_VIEW_AS_ENCRYPTED) { in ecryptfs_readpage()
191 if (crypt_stat->flags & ECRYPTFS_METADATA_IN_XATTR) { in ecryptfs_readpage()
193 crypt_stat); in ecryptfs_readpage()
281 struct ecryptfs_crypt_stat *crypt_stat = in ecryptfs_write_begin() local
282 &ecryptfs_inode_to_private(mapping->host)->crypt_stat; in ecryptfs_write_begin()
284 if (!(crypt_stat->flags & ECRYPTFS_ENCRYPTED)) { in ecryptfs_write_begin()
295 } else if (crypt_stat->flags & ECRYPTFS_VIEW_AS_ENCRYPTED) { in ecryptfs_write_begin()
296 if (crypt_stat->flags & ECRYPTFS_METADATA_IN_XATTR) { in ecryptfs_write_begin()
298 page, crypt_stat); in ecryptfs_write_begin()
442 struct ecryptfs_crypt_stat *crypt_stat; in ecryptfs_write_inode_size_to_metadata() local
444 crypt_stat = &ecryptfs_inode_to_private(ecryptfs_inode)->crypt_stat; in ecryptfs_write_inode_size_to_metadata()
445 BUG_ON(!(crypt_stat->flags & ECRYPTFS_ENCRYPTED)); in ecryptfs_write_inode_size_to_metadata()
446 if (crypt_stat->flags & ECRYPTFS_METADATA_IN_XATTR) in ecryptfs_write_inode_size_to_metadata()
471 struct ecryptfs_crypt_stat *crypt_stat = in ecryptfs_write_end() local
472 &ecryptfs_inode_to_private(ecryptfs_inode)->crypt_stat; in ecryptfs_write_end()
477 if (!(crypt_stat->flags & ECRYPTFS_ENCRYPTED)) { in ecryptfs_write_end()