Lines Matching refs:mount_crypt_stat
259 struct ecryptfs_mount_crypt_stat *mount_crypt_stat) in ecryptfs_destroy_mount_crypt_stat() argument
263 if (!(mount_crypt_stat->flags & ECRYPTFS_MOUNT_CRYPT_STAT_INITIALIZED)) in ecryptfs_destroy_mount_crypt_stat()
265 mutex_lock(&mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_destroy_mount_crypt_stat()
267 &mount_crypt_stat->global_auth_tok_list, in ecryptfs_destroy_mount_crypt_stat()
270 mount_crypt_stat->num_global_auth_toks--; in ecryptfs_destroy_mount_crypt_stat()
276 mutex_unlock(&mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_destroy_mount_crypt_stat()
277 memset(mount_crypt_stat, 0, sizeof(struct ecryptfs_mount_crypt_stat)); in ecryptfs_destroy_mount_crypt_stat()
921 struct ecryptfs_mount_crypt_stat *mount_crypt_stat) in ecryptfs_copy_mount_wide_flags_to_inode_flags() argument
923 if (mount_crypt_stat->flags & ECRYPTFS_XATTR_METADATA_ENABLED) in ecryptfs_copy_mount_wide_flags_to_inode_flags()
925 if (mount_crypt_stat->flags & ECRYPTFS_ENCRYPTED_VIEW_ENABLED) in ecryptfs_copy_mount_wide_flags_to_inode_flags()
927 if (mount_crypt_stat->flags & ECRYPTFS_GLOBAL_ENCRYPT_FILENAMES) { in ecryptfs_copy_mount_wide_flags_to_inode_flags()
929 if (mount_crypt_stat->flags in ecryptfs_copy_mount_wide_flags_to_inode_flags()
932 else if (mount_crypt_stat->flags in ecryptfs_copy_mount_wide_flags_to_inode_flags()
940 struct ecryptfs_mount_crypt_stat *mount_crypt_stat) in ecryptfs_copy_mount_wide_sigs_to_inode_sigs() argument
945 mutex_lock(&mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_copy_mount_wide_sigs_to_inode_sigs()
947 &mount_crypt_stat->global_auth_tok_list, in ecryptfs_copy_mount_wide_sigs_to_inode_sigs()
955 &mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_copy_mount_wide_sigs_to_inode_sigs()
959 mutex_unlock(&mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_copy_mount_wide_sigs_to_inode_sigs()
973 struct ecryptfs_mount_crypt_stat *mount_crypt_stat) in ecryptfs_set_default_crypt_stat_vals() argument
976 mount_crypt_stat); in ecryptfs_set_default_crypt_stat_vals()
982 crypt_stat->mount_crypt_stat = mount_crypt_stat; in ecryptfs_set_default_crypt_stat_vals()
1008 struct ecryptfs_mount_crypt_stat *mount_crypt_stat = in ecryptfs_new_file_context() local
1010 ecryptfs_dentry->d_sb)->mount_crypt_stat; in ecryptfs_new_file_context()
1014 ecryptfs_set_default_crypt_stat_vals(crypt_stat, mount_crypt_stat); in ecryptfs_new_file_context()
1017 mount_crypt_stat); in ecryptfs_new_file_context()
1019 mount_crypt_stat); in ecryptfs_new_file_context()
1026 strlen(mount_crypt_stat->global_default_cipher_name); in ecryptfs_new_file_context()
1028 mount_crypt_stat->global_default_cipher_name, in ecryptfs_new_file_context()
1032 mount_crypt_stat->global_default_cipher_key_size; in ecryptfs_new_file_context()
1493 crypt_stat->mount_crypt_stat = &ecryptfs_superblock_to_private( in ecryptfs_read_headers_virt()
1494 ecryptfs_dentry->d_sb)->mount_crypt_stat; in ecryptfs_read_headers_virt()
1601 struct ecryptfs_mount_crypt_stat *mount_crypt_stat = in ecryptfs_read_metadata() local
1603 ecryptfs_dentry->d_sb)->mount_crypt_stat; in ecryptfs_read_metadata()
1606 mount_crypt_stat); in ecryptfs_read_metadata()
1637 if (crypt_stat->mount_crypt_stat->flags in ecryptfs_read_metadata()
1669 struct ecryptfs_mount_crypt_stat *mount_crypt_stat) in ecryptfs_encrypt_filename() argument
1676 || (mount_crypt_stat && (mount_crypt_stat->flags in ecryptfs_encrypt_filename()
1684 mount_crypt_stat, NULL, in ecryptfs_encrypt_filename()
1706 mount_crypt_stat, in ecryptfs_encrypt_filename()
2109 struct ecryptfs_mount_crypt_stat *mount_crypt_stat, in ecryptfs_encrypt_and_encode_filename() argument
2118 || (mount_crypt_stat && (mount_crypt_stat->flags in ecryptfs_encrypt_and_encode_filename()
2133 mount_crypt_stat); in ecryptfs_encrypt_and_encode_filename()
2146 || (mount_crypt_stat in ecryptfs_encrypt_and_encode_filename()
2147 && (mount_crypt_stat->flags in ecryptfs_encrypt_and_encode_filename()
2168 || (mount_crypt_stat in ecryptfs_encrypt_and_encode_filename()
2169 && (mount_crypt_stat->flags in ecryptfs_encrypt_and_encode_filename()
2224 struct ecryptfs_mount_crypt_stat *mount_crypt_stat = in ecryptfs_decode_and_decrypt_filename() local
2226 ecryptfs_dir_dentry->d_sb)->mount_crypt_stat; in ecryptfs_decode_and_decrypt_filename()
2232 if ((mount_crypt_stat->flags & ECRYPTFS_GLOBAL_ENCRYPT_FILENAMES) in ecryptfs_decode_and_decrypt_filename()
2233 && !(mount_crypt_stat->flags & ECRYPTFS_ENCRYPTED_VIEW_ENABLED) in ecryptfs_decode_and_decrypt_filename()
2257 mount_crypt_stat, in ecryptfs_decode_and_decrypt_filename()