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()
184 struct ecryptfs_crypt_stat *crypt_stat = in ecryptfs_read_folio() local
185 &ecryptfs_inode_to_private(page->mapping->host)->crypt_stat; in ecryptfs_read_folio()
188 if (!crypt_stat || !(crypt_stat->flags & ECRYPTFS_ENCRYPTED)) { in ecryptfs_read_folio()
192 } else if (crypt_stat->flags & ECRYPTFS_VIEW_AS_ENCRYPTED) { in ecryptfs_read_folio()
193 if (crypt_stat->flags & ECRYPTFS_METADATA_IN_XATTR) { in ecryptfs_read_folio()
195 crypt_stat); in ecryptfs_read_folio()
283 struct ecryptfs_crypt_stat *crypt_stat = in ecryptfs_write_begin() local
284 &ecryptfs_inode_to_private(mapping->host)->crypt_stat; in ecryptfs_write_begin()
286 if (!(crypt_stat->flags & ECRYPTFS_ENCRYPTED)) { in ecryptfs_write_begin()
297 } else if (crypt_stat->flags & ECRYPTFS_VIEW_AS_ENCRYPTED) { in ecryptfs_write_begin()
298 if (crypt_stat->flags & ECRYPTFS_METADATA_IN_XATTR) { in ecryptfs_write_begin()
300 page, crypt_stat); in ecryptfs_write_begin()
444 struct ecryptfs_crypt_stat *crypt_stat; in ecryptfs_write_inode_size_to_metadata() local
446 crypt_stat = &ecryptfs_inode_to_private(ecryptfs_inode)->crypt_stat; in ecryptfs_write_inode_size_to_metadata()
447 BUG_ON(!(crypt_stat->flags & ECRYPTFS_ENCRYPTED)); in ecryptfs_write_inode_size_to_metadata()
448 if (crypt_stat->flags & ECRYPTFS_METADATA_IN_XATTR) in ecryptfs_write_inode_size_to_metadata()
473 struct ecryptfs_crypt_stat *crypt_stat = in ecryptfs_write_end() local
474 &ecryptfs_inode_to_private(ecryptfs_inode)->crypt_stat; in ecryptfs_write_end()
479 if (!(crypt_stat->flags & ECRYPTFS_ENCRYPTED)) { in ecryptfs_write_end()