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()
687 struct ecryptfs_mount_crypt_stat *mount_crypt_stat) in ecryptfs_copy_mount_wide_flags_to_inode_flags() argument
689 if (mount_crypt_stat->flags & ECRYPTFS_XATTR_METADATA_ENABLED) in ecryptfs_copy_mount_wide_flags_to_inode_flags()
691 if (mount_crypt_stat->flags & ECRYPTFS_ENCRYPTED_VIEW_ENABLED) in ecryptfs_copy_mount_wide_flags_to_inode_flags()
693 if (mount_crypt_stat->flags & ECRYPTFS_GLOBAL_ENCRYPT_FILENAMES) { in ecryptfs_copy_mount_wide_flags_to_inode_flags()
695 if (mount_crypt_stat->flags in ecryptfs_copy_mount_wide_flags_to_inode_flags()
698 else if (mount_crypt_stat->flags in ecryptfs_copy_mount_wide_flags_to_inode_flags()
706 struct ecryptfs_mount_crypt_stat *mount_crypt_stat) in ecryptfs_copy_mount_wide_sigs_to_inode_sigs() argument
712 mutex_lock(&mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_copy_mount_wide_sigs_to_inode_sigs()
715 &mount_crypt_stat->global_auth_tok_list, in ecryptfs_copy_mount_wide_sigs_to_inode_sigs()
727 mutex_unlock(&mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_copy_mount_wide_sigs_to_inode_sigs()
741 struct ecryptfs_mount_crypt_stat *mount_crypt_stat) in ecryptfs_set_default_crypt_stat_vals() argument
744 mount_crypt_stat); in ecryptfs_set_default_crypt_stat_vals()
750 crypt_stat->mount_crypt_stat = mount_crypt_stat; in ecryptfs_set_default_crypt_stat_vals()
776 struct ecryptfs_mount_crypt_stat *mount_crypt_stat = in ecryptfs_new_file_context() local
778 ecryptfs_inode->i_sb)->mount_crypt_stat; in ecryptfs_new_file_context()
782 ecryptfs_set_default_crypt_stat_vals(crypt_stat, mount_crypt_stat); in ecryptfs_new_file_context()
785 mount_crypt_stat); in ecryptfs_new_file_context()
787 mount_crypt_stat); in ecryptfs_new_file_context()
794 strlen(mount_crypt_stat->global_default_cipher_name); in ecryptfs_new_file_context()
796 mount_crypt_stat->global_default_cipher_name, in ecryptfs_new_file_context()
800 mount_crypt_stat->global_default_cipher_key_size; in ecryptfs_new_file_context()
1244 struct ecryptfs_mount_crypt_stat *mount_crypt_stat; in ecryptfs_i_size_init() local
1249 mount_crypt_stat = in ecryptfs_i_size_init()
1250 &ecryptfs_superblock_to_private(inode->i_sb)->mount_crypt_stat; in ecryptfs_i_size_init()
1251 if (mount_crypt_stat->flags & ECRYPTFS_ENCRYPTED_VIEW_ENABLED) { in ecryptfs_i_size_init()
1283 crypt_stat->mount_crypt_stat = &ecryptfs_superblock_to_private( in ecryptfs_read_headers_virt()
1284 ecryptfs_dentry->d_sb)->mount_crypt_stat; in ecryptfs_read_headers_virt()
1392 struct ecryptfs_mount_crypt_stat *mount_crypt_stat = in ecryptfs_read_metadata() local
1394 ecryptfs_dentry->d_sb)->mount_crypt_stat; in ecryptfs_read_metadata()
1397 mount_crypt_stat); in ecryptfs_read_metadata()
1430 if (crypt_stat->mount_crypt_stat->flags in ecryptfs_read_metadata()
1462 struct ecryptfs_mount_crypt_stat *mount_crypt_stat) in ecryptfs_encrypt_filename() argument
1468 if (mount_crypt_stat && (mount_crypt_stat->flags in ecryptfs_encrypt_filename()
1476 mount_crypt_stat, NULL, in ecryptfs_encrypt_filename()
1495 mount_crypt_stat, in ecryptfs_encrypt_filename()
1896 struct ecryptfs_mount_crypt_stat *mount_crypt_stat, in ecryptfs_encrypt_and_encode_filename() argument
1904 if (mount_crypt_stat && (mount_crypt_stat->flags in ecryptfs_encrypt_and_encode_filename()
1915 rc = ecryptfs_encrypt_filename(filename, mount_crypt_stat); in ecryptfs_encrypt_and_encode_filename()
1926 if (mount_crypt_stat in ecryptfs_encrypt_and_encode_filename()
1927 && (mount_crypt_stat->flags in ecryptfs_encrypt_and_encode_filename()
1943 if (mount_crypt_stat in ecryptfs_encrypt_and_encode_filename()
1944 && (mount_crypt_stat->flags in ecryptfs_encrypt_and_encode_filename()
2008 struct ecryptfs_mount_crypt_stat *mount_crypt_stat = in ecryptfs_decode_and_decrypt_filename() local
2009 &ecryptfs_superblock_to_private(sb)->mount_crypt_stat; in ecryptfs_decode_and_decrypt_filename()
2015 if ((mount_crypt_stat->flags & ECRYPTFS_GLOBAL_ENCRYPT_FILENAMES) && in ecryptfs_decode_and_decrypt_filename()
2016 !(mount_crypt_stat->flags & ECRYPTFS_ENCRYPTED_VIEW_ENABLED)) { in ecryptfs_decode_and_decrypt_filename()
2045 mount_crypt_stat, in ecryptfs_decode_and_decrypt_filename()
2069 struct ecryptfs_mount_crypt_stat *mount_crypt_stat) in ecryptfs_set_f_namelen() argument
2076 if (!(mount_crypt_stat->flags & ECRYPTFS_GLOBAL_ENCRYPT_FILENAMES)) { in ecryptfs_set_f_namelen()
2082 mount_crypt_stat->global_default_fn_cipher_name); in ecryptfs_set_f_namelen()