Lines Matching refs:mount_crypt_stat
200 struct ecryptfs_mount_crypt_stat *mount_crypt_stat) in ecryptfs_destroy_mount_crypt_stat() argument
204 if (!(mount_crypt_stat->flags & ECRYPTFS_MOUNT_CRYPT_STAT_INITIALIZED)) in ecryptfs_destroy_mount_crypt_stat()
206 mutex_lock(&mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_destroy_mount_crypt_stat()
208 &mount_crypt_stat->global_auth_tok_list, in ecryptfs_destroy_mount_crypt_stat()
215 mutex_unlock(&mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_destroy_mount_crypt_stat()
216 memset(mount_crypt_stat, 0, sizeof(struct ecryptfs_mount_crypt_stat)); in ecryptfs_destroy_mount_crypt_stat()
685 struct ecryptfs_mount_crypt_stat *mount_crypt_stat) in ecryptfs_copy_mount_wide_flags_to_inode_flags() argument
687 if (mount_crypt_stat->flags & ECRYPTFS_XATTR_METADATA_ENABLED) in ecryptfs_copy_mount_wide_flags_to_inode_flags()
689 if (mount_crypt_stat->flags & ECRYPTFS_ENCRYPTED_VIEW_ENABLED) in ecryptfs_copy_mount_wide_flags_to_inode_flags()
691 if (mount_crypt_stat->flags & ECRYPTFS_GLOBAL_ENCRYPT_FILENAMES) { in ecryptfs_copy_mount_wide_flags_to_inode_flags()
693 if (mount_crypt_stat->flags in ecryptfs_copy_mount_wide_flags_to_inode_flags()
696 else if (mount_crypt_stat->flags in ecryptfs_copy_mount_wide_flags_to_inode_flags()
704 struct ecryptfs_mount_crypt_stat *mount_crypt_stat) in ecryptfs_copy_mount_wide_sigs_to_inode_sigs() argument
710 mutex_lock(&mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_copy_mount_wide_sigs_to_inode_sigs()
713 &mount_crypt_stat->global_auth_tok_list, in ecryptfs_copy_mount_wide_sigs_to_inode_sigs()
725 mutex_unlock(&mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_copy_mount_wide_sigs_to_inode_sigs()
739 struct ecryptfs_mount_crypt_stat *mount_crypt_stat) in ecryptfs_set_default_crypt_stat_vals() argument
742 mount_crypt_stat); in ecryptfs_set_default_crypt_stat_vals()
748 crypt_stat->mount_crypt_stat = mount_crypt_stat; in ecryptfs_set_default_crypt_stat_vals()
774 struct ecryptfs_mount_crypt_stat *mount_crypt_stat = in ecryptfs_new_file_context() local
776 ecryptfs_inode->i_sb)->mount_crypt_stat; in ecryptfs_new_file_context()
780 ecryptfs_set_default_crypt_stat_vals(crypt_stat, mount_crypt_stat); in ecryptfs_new_file_context()
783 mount_crypt_stat); in ecryptfs_new_file_context()
785 mount_crypt_stat); in ecryptfs_new_file_context()
792 strlen(mount_crypt_stat->global_default_cipher_name); in ecryptfs_new_file_context()
794 mount_crypt_stat->global_default_cipher_name, in ecryptfs_new_file_context()
798 mount_crypt_stat->global_default_cipher_key_size; in ecryptfs_new_file_context()
1242 struct ecryptfs_mount_crypt_stat *mount_crypt_stat; in ecryptfs_i_size_init() local
1247 mount_crypt_stat = in ecryptfs_i_size_init()
1248 &ecryptfs_superblock_to_private(inode->i_sb)->mount_crypt_stat; in ecryptfs_i_size_init()
1249 if (mount_crypt_stat->flags & ECRYPTFS_ENCRYPTED_VIEW_ENABLED) { in ecryptfs_i_size_init()
1281 crypt_stat->mount_crypt_stat = &ecryptfs_superblock_to_private( in ecryptfs_read_headers_virt()
1282 ecryptfs_dentry->d_sb)->mount_crypt_stat; in ecryptfs_read_headers_virt()
1390 struct ecryptfs_mount_crypt_stat *mount_crypt_stat = in ecryptfs_read_metadata() local
1392 ecryptfs_dentry->d_sb)->mount_crypt_stat; in ecryptfs_read_metadata()
1395 mount_crypt_stat); in ecryptfs_read_metadata()
1428 if (crypt_stat->mount_crypt_stat->flags in ecryptfs_read_metadata()
1460 struct ecryptfs_mount_crypt_stat *mount_crypt_stat) in ecryptfs_encrypt_filename() argument
1466 if (mount_crypt_stat && (mount_crypt_stat->flags in ecryptfs_encrypt_filename()
1474 mount_crypt_stat, NULL, in ecryptfs_encrypt_filename()
1493 mount_crypt_stat, in ecryptfs_encrypt_filename()
1894 struct ecryptfs_mount_crypt_stat *mount_crypt_stat, in ecryptfs_encrypt_and_encode_filename() argument
1902 if (mount_crypt_stat && (mount_crypt_stat->flags in ecryptfs_encrypt_and_encode_filename()
1913 rc = ecryptfs_encrypt_filename(filename, mount_crypt_stat); in ecryptfs_encrypt_and_encode_filename()
1924 if (mount_crypt_stat in ecryptfs_encrypt_and_encode_filename()
1925 && (mount_crypt_stat->flags in ecryptfs_encrypt_and_encode_filename()
1941 if (mount_crypt_stat in ecryptfs_encrypt_and_encode_filename()
1942 && (mount_crypt_stat->flags in ecryptfs_encrypt_and_encode_filename()
2006 struct ecryptfs_mount_crypt_stat *mount_crypt_stat = in ecryptfs_decode_and_decrypt_filename() local
2007 &ecryptfs_superblock_to_private(sb)->mount_crypt_stat; in ecryptfs_decode_and_decrypt_filename()
2013 if ((mount_crypt_stat->flags & ECRYPTFS_GLOBAL_ENCRYPT_FILENAMES) && in ecryptfs_decode_and_decrypt_filename()
2014 !(mount_crypt_stat->flags & ECRYPTFS_ENCRYPTED_VIEW_ENABLED)) { in ecryptfs_decode_and_decrypt_filename()
2043 mount_crypt_stat, in ecryptfs_decode_and_decrypt_filename()
2067 struct ecryptfs_mount_crypt_stat *mount_crypt_stat) in ecryptfs_set_f_namelen() argument
2074 if (!(mount_crypt_stat->flags & ECRYPTFS_GLOBAL_ENCRYPT_FILENAMES)) { in ecryptfs_set_f_namelen()
2080 mount_crypt_stat->global_default_fn_cipher_name); in ecryptfs_set_f_namelen()