Lines Matching refs:mount_crypt_stat

215 	struct ecryptfs_mount_crypt_stat *mount_crypt_stat)  in ecryptfs_destroy_mount_crypt_stat()  argument
219 if (!(mount_crypt_stat->flags & ECRYPTFS_MOUNT_CRYPT_STAT_INITIALIZED)) in ecryptfs_destroy_mount_crypt_stat()
221 mutex_lock(&mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_destroy_mount_crypt_stat()
223 &mount_crypt_stat->global_auth_tok_list, in ecryptfs_destroy_mount_crypt_stat()
230 mutex_unlock(&mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_destroy_mount_crypt_stat()
231 memset(mount_crypt_stat, 0, sizeof(struct ecryptfs_mount_crypt_stat)); in ecryptfs_destroy_mount_crypt_stat()
700 struct ecryptfs_mount_crypt_stat *mount_crypt_stat) in ecryptfs_copy_mount_wide_flags_to_inode_flags() argument
702 if (mount_crypt_stat->flags & ECRYPTFS_XATTR_METADATA_ENABLED) in ecryptfs_copy_mount_wide_flags_to_inode_flags()
704 if (mount_crypt_stat->flags & ECRYPTFS_ENCRYPTED_VIEW_ENABLED) in ecryptfs_copy_mount_wide_flags_to_inode_flags()
706 if (mount_crypt_stat->flags & ECRYPTFS_GLOBAL_ENCRYPT_FILENAMES) { in ecryptfs_copy_mount_wide_flags_to_inode_flags()
708 if (mount_crypt_stat->flags in ecryptfs_copy_mount_wide_flags_to_inode_flags()
711 else if (mount_crypt_stat->flags in ecryptfs_copy_mount_wide_flags_to_inode_flags()
719 struct ecryptfs_mount_crypt_stat *mount_crypt_stat) in ecryptfs_copy_mount_wide_sigs_to_inode_sigs() argument
725 mutex_lock(&mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_copy_mount_wide_sigs_to_inode_sigs()
728 &mount_crypt_stat->global_auth_tok_list, in ecryptfs_copy_mount_wide_sigs_to_inode_sigs()
740 mutex_unlock(&mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_copy_mount_wide_sigs_to_inode_sigs()
754 struct ecryptfs_mount_crypt_stat *mount_crypt_stat) in ecryptfs_set_default_crypt_stat_vals() argument
757 mount_crypt_stat); in ecryptfs_set_default_crypt_stat_vals()
763 crypt_stat->mount_crypt_stat = mount_crypt_stat; in ecryptfs_set_default_crypt_stat_vals()
789 struct ecryptfs_mount_crypt_stat *mount_crypt_stat = in ecryptfs_new_file_context() local
791 ecryptfs_inode->i_sb)->mount_crypt_stat; in ecryptfs_new_file_context()
795 ecryptfs_set_default_crypt_stat_vals(crypt_stat, mount_crypt_stat); in ecryptfs_new_file_context()
798 mount_crypt_stat); in ecryptfs_new_file_context()
800 mount_crypt_stat); in ecryptfs_new_file_context()
807 strlen(mount_crypt_stat->global_default_cipher_name); in ecryptfs_new_file_context()
809 mount_crypt_stat->global_default_cipher_name, in ecryptfs_new_file_context()
813 mount_crypt_stat->global_default_cipher_key_size; in ecryptfs_new_file_context()
1257 struct ecryptfs_mount_crypt_stat *mount_crypt_stat; in ecryptfs_i_size_init() local
1262 mount_crypt_stat = in ecryptfs_i_size_init()
1263 &ecryptfs_superblock_to_private(inode->i_sb)->mount_crypt_stat; in ecryptfs_i_size_init()
1264 if (mount_crypt_stat->flags & ECRYPTFS_ENCRYPTED_VIEW_ENABLED) { in ecryptfs_i_size_init()
1296 crypt_stat->mount_crypt_stat = &ecryptfs_superblock_to_private( in ecryptfs_read_headers_virt()
1297 ecryptfs_dentry->d_sb)->mount_crypt_stat; in ecryptfs_read_headers_virt()
1405 struct ecryptfs_mount_crypt_stat *mount_crypt_stat = in ecryptfs_read_metadata() local
1407 ecryptfs_dentry->d_sb)->mount_crypt_stat; in ecryptfs_read_metadata()
1410 mount_crypt_stat); in ecryptfs_read_metadata()
1443 if (crypt_stat->mount_crypt_stat->flags in ecryptfs_read_metadata()
1475 struct ecryptfs_mount_crypt_stat *mount_crypt_stat) in ecryptfs_encrypt_filename() argument
1481 if (mount_crypt_stat && (mount_crypt_stat->flags in ecryptfs_encrypt_filename()
1489 mount_crypt_stat, NULL, in ecryptfs_encrypt_filename()
1508 mount_crypt_stat, in ecryptfs_encrypt_filename()
1909 struct ecryptfs_mount_crypt_stat *mount_crypt_stat, in ecryptfs_encrypt_and_encode_filename() argument
1917 if (mount_crypt_stat && (mount_crypt_stat->flags in ecryptfs_encrypt_and_encode_filename()
1928 rc = ecryptfs_encrypt_filename(filename, mount_crypt_stat); in ecryptfs_encrypt_and_encode_filename()
1939 if (mount_crypt_stat in ecryptfs_encrypt_and_encode_filename()
1940 && (mount_crypt_stat->flags in ecryptfs_encrypt_and_encode_filename()
1956 if (mount_crypt_stat in ecryptfs_encrypt_and_encode_filename()
1957 && (mount_crypt_stat->flags in ecryptfs_encrypt_and_encode_filename()
2021 struct ecryptfs_mount_crypt_stat *mount_crypt_stat = in ecryptfs_decode_and_decrypt_filename() local
2022 &ecryptfs_superblock_to_private(sb)->mount_crypt_stat; in ecryptfs_decode_and_decrypt_filename()
2028 if ((mount_crypt_stat->flags & ECRYPTFS_GLOBAL_ENCRYPT_FILENAMES) && in ecryptfs_decode_and_decrypt_filename()
2029 !(mount_crypt_stat->flags & ECRYPTFS_ENCRYPTED_VIEW_ENABLED)) { in ecryptfs_decode_and_decrypt_filename()
2058 mount_crypt_stat, in ecryptfs_decode_and_decrypt_filename()
2082 struct ecryptfs_mount_crypt_stat *mount_crypt_stat) in ecryptfs_set_f_namelen() argument
2089 if (!(mount_crypt_stat->flags & ECRYPTFS_GLOBAL_ENCRYPT_FILENAMES)) { in ecryptfs_set_f_namelen()
2095 mount_crypt_stat->global_default_fn_cipher_name); in ecryptfs_set_f_namelen()