Lines Matching refs:crypt_stat

52 			     struct ecryptfs_crypt_stat *crypt_stat)  in strip_xattr_flag()  argument
54 if (crypt_stat->flags & ECRYPTFS_METADATA_IN_XATTR) { in strip_xattr_flag()
57 crypt_stat->flags &= ~ECRYPTFS_METADATA_IN_XATTR; in strip_xattr_flag()
58 ecryptfs_write_crypt_stat_flags(page_virt, crypt_stat, in strip_xattr_flag()
60 crypt_stat->flags |= ECRYPTFS_METADATA_IN_XATTR; in strip_xattr_flag()
92 struct ecryptfs_crypt_stat *crypt_stat) in ecryptfs_copy_up_encrypted_with_header() argument
96 / crypt_stat->extent_size); in ecryptfs_copy_up_encrypted_with_header()
104 (crypt_stat->metadata_size / crypt_stat->extent_size); in ecryptfs_copy_up_encrypted_with_header()
118 strip_xattr_flag(page_virt + 16, crypt_stat); in ecryptfs_copy_up_encrypted_with_header()
120 crypt_stat, in ecryptfs_copy_up_encrypted_with_header()
133 ((view_extent_num * crypt_stat->extent_size) in ecryptfs_copy_up_encrypted_with_header()
134 - crypt_stat->metadata_size); in ecryptfs_copy_up_encrypted_with_header()
139 crypt_stat->extent_size, folio->mapping->host); in ecryptfs_copy_up_encrypted_with_header()
166 struct ecryptfs_crypt_stat *crypt_stat = in ecryptfs_read_folio() local
167 &ecryptfs_inode_to_private(inode)->crypt_stat; in ecryptfs_read_folio()
170 if (!crypt_stat || !(crypt_stat->flags & ECRYPTFS_ENCRYPTED)) { in ecryptfs_read_folio()
173 } else if (crypt_stat->flags & ECRYPTFS_VIEW_AS_ENCRYPTED) { in ecryptfs_read_folio()
174 if (crypt_stat->flags & ECRYPTFS_METADATA_IN_XATTR) { in ecryptfs_read_folio()
176 crypt_stat); in ecryptfs_read_folio()
260 struct ecryptfs_crypt_stat *crypt_stat = in ecryptfs_write_begin() local
261 &ecryptfs_inode_to_private(mapping->host)->crypt_stat; in ecryptfs_write_begin()
263 if (!(crypt_stat->flags & ECRYPTFS_ENCRYPTED)) { in ecryptfs_write_begin()
274 } else if (crypt_stat->flags & ECRYPTFS_VIEW_AS_ENCRYPTED) { in ecryptfs_write_begin()
275 if (crypt_stat->flags & ECRYPTFS_METADATA_IN_XATTR) { in ecryptfs_write_begin()
277 folio, crypt_stat); in ecryptfs_write_begin()
420 struct ecryptfs_crypt_stat *crypt_stat; in ecryptfs_write_inode_size_to_metadata() local
422 crypt_stat = &ecryptfs_inode_to_private(ecryptfs_inode)->crypt_stat; in ecryptfs_write_inode_size_to_metadata()
423 BUG_ON(!(crypt_stat->flags & ECRYPTFS_ENCRYPTED)); in ecryptfs_write_inode_size_to_metadata()
424 if (crypt_stat->flags & ECRYPTFS_METADATA_IN_XATTR) in ecryptfs_write_inode_size_to_metadata()
449 struct ecryptfs_crypt_stat *crypt_stat = in ecryptfs_write_end() local
450 &ecryptfs_inode_to_private(ecryptfs_inode)->crypt_stat; in ecryptfs_write_end()
455 if (!(crypt_stat->flags & ECRYPTFS_ENCRYPTED)) { in ecryptfs_write_end()