• Home
  • Raw
  • Download

Lines Matching refs:crypt_stat

83 			     struct ecryptfs_crypt_stat *crypt_stat)  in strip_xattr_flag()  argument
85 if (crypt_stat->flags & ECRYPTFS_METADATA_IN_XATTR) { in strip_xattr_flag()
88 crypt_stat->flags &= ~ECRYPTFS_METADATA_IN_XATTR; in strip_xattr_flag()
89 ecryptfs_write_crypt_stat_flags(page_virt, crypt_stat, in strip_xattr_flag()
91 crypt_stat->flags |= ECRYPTFS_METADATA_IN_XATTR; in strip_xattr_flag()
123 struct ecryptfs_crypt_stat *crypt_stat) in ecryptfs_copy_up_encrypted_with_header() argument
127 / crypt_stat->extent_size); in ecryptfs_copy_up_encrypted_with_header()
135 (crypt_stat->metadata_size / crypt_stat->extent_size); in ecryptfs_copy_up_encrypted_with_header()
149 strip_xattr_flag(page_virt + 16, crypt_stat); in ecryptfs_copy_up_encrypted_with_header()
151 crypt_stat, in ecryptfs_copy_up_encrypted_with_header()
164 ((view_extent_num * crypt_stat->extent_size) in ecryptfs_copy_up_encrypted_with_header()
165 - crypt_stat->metadata_size); in ecryptfs_copy_up_encrypted_with_header()
170 crypt_stat->extent_size, page->mapping->host); in ecryptfs_copy_up_encrypted_with_header()
196 struct ecryptfs_crypt_stat *crypt_stat = in ecryptfs_readpage() local
197 &ecryptfs_inode_to_private(page->mapping->host)->crypt_stat; in ecryptfs_readpage()
200 if (!crypt_stat || !(crypt_stat->flags & ECRYPTFS_ENCRYPTED)) { in ecryptfs_readpage()
204 } else if (crypt_stat->flags & ECRYPTFS_VIEW_AS_ENCRYPTED) { in ecryptfs_readpage()
205 if (crypt_stat->flags & ECRYPTFS_METADATA_IN_XATTR) { in ecryptfs_readpage()
207 crypt_stat); in ecryptfs_readpage()
295 struct ecryptfs_crypt_stat *crypt_stat = in ecryptfs_write_begin() local
296 &ecryptfs_inode_to_private(mapping->host)->crypt_stat; in ecryptfs_write_begin()
298 if (!(crypt_stat->flags & ECRYPTFS_ENCRYPTED)) { in ecryptfs_write_begin()
309 } else if (crypt_stat->flags & ECRYPTFS_VIEW_AS_ENCRYPTED) { in ecryptfs_write_begin()
310 if (crypt_stat->flags & ECRYPTFS_METADATA_IN_XATTR) { in ecryptfs_write_begin()
312 page, crypt_stat); in ecryptfs_write_begin()
458 struct ecryptfs_crypt_stat *crypt_stat; in ecryptfs_write_inode_size_to_metadata() local
460 crypt_stat = &ecryptfs_inode_to_private(ecryptfs_inode)->crypt_stat; in ecryptfs_write_inode_size_to_metadata()
461 BUG_ON(!(crypt_stat->flags & ECRYPTFS_ENCRYPTED)); in ecryptfs_write_inode_size_to_metadata()
462 if (crypt_stat->flags & ECRYPTFS_METADATA_IN_XATTR) in ecryptfs_write_inode_size_to_metadata()
487 struct ecryptfs_crypt_stat *crypt_stat = in ecryptfs_write_end() local
488 &ecryptfs_inode_to_private(ecryptfs_inode)->crypt_stat; in ecryptfs_write_end()
493 if (!(crypt_stat->flags & ECRYPTFS_ENCRYPTED)) { in ecryptfs_write_end()