Lines Matching refs:mount_crypt_stat
250 struct ecryptfs_mount_crypt_stat *mount_crypt_stat) in ecryptfs_destroy_mount_crypt_stat() argument
254 if (!(mount_crypt_stat->flags & ECRYPTFS_MOUNT_CRYPT_STAT_INITIALIZED)) in ecryptfs_destroy_mount_crypt_stat()
256 mutex_lock(&mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_destroy_mount_crypt_stat()
258 &mount_crypt_stat->global_auth_tok_list, in ecryptfs_destroy_mount_crypt_stat()
265 mutex_unlock(&mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_destroy_mount_crypt_stat()
266 memset(mount_crypt_stat, 0, sizeof(struct ecryptfs_mount_crypt_stat)); in ecryptfs_destroy_mount_crypt_stat()
734 struct ecryptfs_mount_crypt_stat *mount_crypt_stat) in ecryptfs_copy_mount_wide_flags_to_inode_flags() argument
736 if (mount_crypt_stat->flags & ECRYPTFS_XATTR_METADATA_ENABLED) in ecryptfs_copy_mount_wide_flags_to_inode_flags()
738 if (mount_crypt_stat->flags & ECRYPTFS_ENCRYPTED_VIEW_ENABLED) in ecryptfs_copy_mount_wide_flags_to_inode_flags()
740 if (mount_crypt_stat->flags & ECRYPTFS_GLOBAL_ENCRYPT_FILENAMES) { in ecryptfs_copy_mount_wide_flags_to_inode_flags()
742 if (mount_crypt_stat->flags in ecryptfs_copy_mount_wide_flags_to_inode_flags()
745 else if (mount_crypt_stat->flags in ecryptfs_copy_mount_wide_flags_to_inode_flags()
753 struct ecryptfs_mount_crypt_stat *mount_crypt_stat) in ecryptfs_copy_mount_wide_sigs_to_inode_sigs() argument
759 mutex_lock(&mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_copy_mount_wide_sigs_to_inode_sigs()
762 &mount_crypt_stat->global_auth_tok_list, in ecryptfs_copy_mount_wide_sigs_to_inode_sigs()
774 mutex_unlock(&mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_copy_mount_wide_sigs_to_inode_sigs()
788 struct ecryptfs_mount_crypt_stat *mount_crypt_stat) in ecryptfs_set_default_crypt_stat_vals() argument
791 mount_crypt_stat); in ecryptfs_set_default_crypt_stat_vals()
797 crypt_stat->mount_crypt_stat = mount_crypt_stat; in ecryptfs_set_default_crypt_stat_vals()
823 struct ecryptfs_mount_crypt_stat *mount_crypt_stat = in ecryptfs_new_file_context() local
825 ecryptfs_inode->i_sb)->mount_crypt_stat; in ecryptfs_new_file_context()
829 ecryptfs_set_default_crypt_stat_vals(crypt_stat, mount_crypt_stat); in ecryptfs_new_file_context()
832 mount_crypt_stat); in ecryptfs_new_file_context()
834 mount_crypt_stat); in ecryptfs_new_file_context()
841 strlen(mount_crypt_stat->global_default_cipher_name); in ecryptfs_new_file_context()
843 mount_crypt_stat->global_default_cipher_name, in ecryptfs_new_file_context()
847 mount_crypt_stat->global_default_cipher_key_size; in ecryptfs_new_file_context()
1282 struct ecryptfs_mount_crypt_stat *mount_crypt_stat; in ecryptfs_i_size_init() local
1287 mount_crypt_stat = in ecryptfs_i_size_init()
1288 &ecryptfs_superblock_to_private(inode->i_sb)->mount_crypt_stat; in ecryptfs_i_size_init()
1289 if (mount_crypt_stat->flags & ECRYPTFS_ENCRYPTED_VIEW_ENABLED) { in ecryptfs_i_size_init()
1321 crypt_stat->mount_crypt_stat = &ecryptfs_superblock_to_private( in ecryptfs_read_headers_virt()
1322 ecryptfs_dentry->d_sb)->mount_crypt_stat; in ecryptfs_read_headers_virt()
1430 struct ecryptfs_mount_crypt_stat *mount_crypt_stat = in ecryptfs_read_metadata() local
1432 ecryptfs_dentry->d_sb)->mount_crypt_stat; in ecryptfs_read_metadata()
1435 mount_crypt_stat); in ecryptfs_read_metadata()
1470 if (crypt_stat->mount_crypt_stat->flags in ecryptfs_read_metadata()
1503 struct ecryptfs_mount_crypt_stat *mount_crypt_stat) in ecryptfs_encrypt_filename() argument
1510 || (mount_crypt_stat && (mount_crypt_stat->flags in ecryptfs_encrypt_filename()
1518 mount_crypt_stat, NULL, in ecryptfs_encrypt_filename()
1540 mount_crypt_stat, in ecryptfs_encrypt_filename()
1948 struct ecryptfs_mount_crypt_stat *mount_crypt_stat, in ecryptfs_encrypt_and_encode_filename() argument
1957 || (mount_crypt_stat && (mount_crypt_stat->flags in ecryptfs_encrypt_and_encode_filename()
1972 mount_crypt_stat); in ecryptfs_encrypt_and_encode_filename()
1985 || (mount_crypt_stat in ecryptfs_encrypt_and_encode_filename()
1986 && (mount_crypt_stat->flags in ecryptfs_encrypt_and_encode_filename()
2007 || (mount_crypt_stat in ecryptfs_encrypt_and_encode_filename()
2008 && (mount_crypt_stat->flags in ecryptfs_encrypt_and_encode_filename()
2062 struct ecryptfs_mount_crypt_stat *mount_crypt_stat = in ecryptfs_decode_and_decrypt_filename() local
2063 &ecryptfs_superblock_to_private(sb)->mount_crypt_stat; in ecryptfs_decode_and_decrypt_filename()
2069 if ((mount_crypt_stat->flags & ECRYPTFS_GLOBAL_ENCRYPT_FILENAMES) in ecryptfs_decode_and_decrypt_filename()
2070 && !(mount_crypt_stat->flags & ECRYPTFS_ENCRYPTED_VIEW_ENABLED) in ecryptfs_decode_and_decrypt_filename()
2094 mount_crypt_stat, in ecryptfs_decode_and_decrypt_filename()
2121 struct ecryptfs_mount_crypt_stat *mount_crypt_stat) in ecryptfs_set_f_namelen() argument
2128 if (!(mount_crypt_stat->flags & ECRYPTFS_GLOBAL_ENCRYPT_FILENAMES)) { in ecryptfs_set_f_namelen()
2134 mount_crypt_stat->global_default_fn_cipher_name); in ecryptfs_set_f_namelen()