Lines Matching refs:crypt_stat
70 struct ecryptfs_crypt_stat *crypt_stat) in strip_xattr_flag() argument
72 if (crypt_stat->flags & ECRYPTFS_METADATA_IN_XATTR) { in strip_xattr_flag()
75 crypt_stat->flags &= ~ECRYPTFS_METADATA_IN_XATTR; in strip_xattr_flag()
76 ecryptfs_write_crypt_stat_flags(page_virt, crypt_stat, in strip_xattr_flag()
78 crypt_stat->flags |= ECRYPTFS_METADATA_IN_XATTR; in strip_xattr_flag()
110 struct ecryptfs_crypt_stat *crypt_stat) in ecryptfs_copy_up_encrypted_with_header() argument
114 / crypt_stat->extent_size); in ecryptfs_copy_up_encrypted_with_header()
122 (crypt_stat->metadata_size / crypt_stat->extent_size); in ecryptfs_copy_up_encrypted_with_header()
136 strip_xattr_flag(page_virt + 16, crypt_stat); in ecryptfs_copy_up_encrypted_with_header()
138 crypt_stat, in ecryptfs_copy_up_encrypted_with_header()
151 ((view_extent_num * crypt_stat->extent_size) in ecryptfs_copy_up_encrypted_with_header()
152 - crypt_stat->metadata_size); in ecryptfs_copy_up_encrypted_with_header()
157 crypt_stat->extent_size, page->mapping->host); in ecryptfs_copy_up_encrypted_with_header()
183 struct ecryptfs_crypt_stat *crypt_stat = in ecryptfs_readpage() local
184 &ecryptfs_inode_to_private(page->mapping->host)->crypt_stat; in ecryptfs_readpage()
187 if (!crypt_stat || !(crypt_stat->flags & ECRYPTFS_ENCRYPTED)) { in ecryptfs_readpage()
191 } else if (crypt_stat->flags & ECRYPTFS_VIEW_AS_ENCRYPTED) { in ecryptfs_readpage()
192 if (crypt_stat->flags & ECRYPTFS_METADATA_IN_XATTR) { in ecryptfs_readpage()
194 crypt_stat); in ecryptfs_readpage()
282 struct ecryptfs_crypt_stat *crypt_stat = in ecryptfs_write_begin() local
283 &ecryptfs_inode_to_private(mapping->host)->crypt_stat; in ecryptfs_write_begin()
285 if (!(crypt_stat->flags & ECRYPTFS_ENCRYPTED)) { in ecryptfs_write_begin()
296 } else if (crypt_stat->flags & ECRYPTFS_VIEW_AS_ENCRYPTED) { in ecryptfs_write_begin()
297 if (crypt_stat->flags & ECRYPTFS_METADATA_IN_XATTR) { in ecryptfs_write_begin()
299 page, crypt_stat); in ecryptfs_write_begin()
443 struct ecryptfs_crypt_stat *crypt_stat; in ecryptfs_write_inode_size_to_metadata() local
445 crypt_stat = &ecryptfs_inode_to_private(ecryptfs_inode)->crypt_stat; in ecryptfs_write_inode_size_to_metadata()
446 BUG_ON(!(crypt_stat->flags & ECRYPTFS_ENCRYPTED)); in ecryptfs_write_inode_size_to_metadata()
447 if (crypt_stat->flags & ECRYPTFS_METADATA_IN_XATTR) in ecryptfs_write_inode_size_to_metadata()
472 struct ecryptfs_crypt_stat *crypt_stat = in ecryptfs_write_end() local
473 &ecryptfs_inode_to_private(ecryptfs_inode)->crypt_stat; in ecryptfs_write_end()
478 if (!(crypt_stat->flags & ECRYPTFS_ENCRYPTED)) { in ecryptfs_write_end()