• Home
  • Raw
  • Download

Lines Matching refs:crypt_stat

101 			    struct ecryptfs_crypt_stat *crypt_stat)  in set_header_info()  argument
105 crypt_stat->num_header_bytes_at_front; in set_header_info()
107 crypt_stat->num_header_bytes_at_front = in set_header_info()
109 ecryptfs_write_header_metadata(page_virt + 20, crypt_stat, &written); in set_header_info()
110 crypt_stat->num_header_bytes_at_front = in set_header_info()
126 struct ecryptfs_crypt_stat *crypt_stat) in ecryptfs_copy_up_encrypted_with_header() argument
130 / crypt_stat->extent_size); in ecryptfs_copy_up_encrypted_with_header()
138 (crypt_stat->num_header_bytes_at_front in ecryptfs_copy_up_encrypted_with_header()
139 / crypt_stat->extent_size); in ecryptfs_copy_up_encrypted_with_header()
151 set_header_info(page_virt, crypt_stat); in ecryptfs_copy_up_encrypted_with_header()
163 ((view_extent_num * crypt_stat->extent_size) in ecryptfs_copy_up_encrypted_with_header()
164 - crypt_stat->num_header_bytes_at_front); in ecryptfs_copy_up_encrypted_with_header()
169 crypt_stat->extent_size, page->mapping->host); in ecryptfs_copy_up_encrypted_with_header()
195 struct ecryptfs_crypt_stat *crypt_stat = in ecryptfs_readpage() local
196 &ecryptfs_inode_to_private(file->f_path.dentry->d_inode)->crypt_stat; in ecryptfs_readpage()
199 if (!crypt_stat in ecryptfs_readpage()
200 || !(crypt_stat->flags & ECRYPTFS_ENCRYPTED) in ecryptfs_readpage()
201 || (crypt_stat->flags & ECRYPTFS_NEW_FILE)) { in ecryptfs_readpage()
207 } else if (crypt_stat->flags & ECRYPTFS_VIEW_AS_ENCRYPTED) { in ecryptfs_readpage()
208 if (crypt_stat->flags & ECRYPTFS_METADATA_IN_XATTR) { in ecryptfs_readpage()
210 crypt_stat); in ecryptfs_readpage()
297 struct ecryptfs_crypt_stat *crypt_stat = in ecryptfs_write_begin() local
299 file->f_path.dentry->d_inode)->crypt_stat; in ecryptfs_write_begin()
301 if (!(crypt_stat->flags & ECRYPTFS_ENCRYPTED) in ecryptfs_write_begin()
302 || (crypt_stat->flags & ECRYPTFS_NEW_FILE)) { in ecryptfs_write_begin()
313 } else if (crypt_stat->flags & ECRYPTFS_VIEW_AS_ENCRYPTED) { in ecryptfs_write_begin()
314 if (crypt_stat->flags & ECRYPTFS_METADATA_IN_XATTR) { in ecryptfs_write_begin()
316 page, crypt_stat); in ecryptfs_write_begin()
449 struct ecryptfs_crypt_stat *crypt_stat; in ecryptfs_write_inode_size_to_metadata() local
451 crypt_stat = &ecryptfs_inode_to_private(ecryptfs_inode)->crypt_stat; in ecryptfs_write_inode_size_to_metadata()
452 if (crypt_stat->flags & ECRYPTFS_METADATA_IN_XATTR) in ecryptfs_write_inode_size_to_metadata()
481 struct ecryptfs_crypt_stat *crypt_stat = in ecryptfs_write_end() local
482 &ecryptfs_inode_to_private(file->f_path.dentry->d_inode)->crypt_stat; in ecryptfs_write_end()
485 if (crypt_stat->flags & ECRYPTFS_NEW_FILE) { in ecryptfs_write_end()
487 "crypt_stat at memory location [%p]\n", crypt_stat); in ecryptfs_write_end()
488 crypt_stat->flags &= ~(ECRYPTFS_NEW_FILE); in ecryptfs_write_end()