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()
658 struct ecryptfs_mount_crypt_stat *mount_crypt_stat) in ecryptfs_copy_mount_wide_flags_to_inode_flags() argument
660 if (mount_crypt_stat->flags & ECRYPTFS_XATTR_METADATA_ENABLED) in ecryptfs_copy_mount_wide_flags_to_inode_flags()
662 if (mount_crypt_stat->flags & ECRYPTFS_ENCRYPTED_VIEW_ENABLED) in ecryptfs_copy_mount_wide_flags_to_inode_flags()
664 if (mount_crypt_stat->flags & ECRYPTFS_GLOBAL_ENCRYPT_FILENAMES) { in ecryptfs_copy_mount_wide_flags_to_inode_flags()
666 if (mount_crypt_stat->flags in ecryptfs_copy_mount_wide_flags_to_inode_flags()
669 else if (mount_crypt_stat->flags in ecryptfs_copy_mount_wide_flags_to_inode_flags()
677 struct ecryptfs_mount_crypt_stat *mount_crypt_stat) in ecryptfs_copy_mount_wide_sigs_to_inode_sigs() argument
683 mutex_lock(&mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_copy_mount_wide_sigs_to_inode_sigs()
686 &mount_crypt_stat->global_auth_tok_list, in ecryptfs_copy_mount_wide_sigs_to_inode_sigs()
698 mutex_unlock(&mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_copy_mount_wide_sigs_to_inode_sigs()
712 struct ecryptfs_mount_crypt_stat *mount_crypt_stat) in ecryptfs_set_default_crypt_stat_vals() argument
715 mount_crypt_stat); in ecryptfs_set_default_crypt_stat_vals()
721 crypt_stat->mount_crypt_stat = mount_crypt_stat; in ecryptfs_set_default_crypt_stat_vals()
747 struct ecryptfs_mount_crypt_stat *mount_crypt_stat = in ecryptfs_new_file_context() local
749 ecryptfs_inode->i_sb)->mount_crypt_stat; in ecryptfs_new_file_context()
753 ecryptfs_set_default_crypt_stat_vals(crypt_stat, mount_crypt_stat); in ecryptfs_new_file_context()
756 mount_crypt_stat); in ecryptfs_new_file_context()
758 mount_crypt_stat); in ecryptfs_new_file_context()
765 strlen(mount_crypt_stat->global_default_cipher_name); in ecryptfs_new_file_context()
767 mount_crypt_stat->global_default_cipher_name, in ecryptfs_new_file_context()
771 mount_crypt_stat->global_default_cipher_key_size; in ecryptfs_new_file_context()
1215 struct ecryptfs_mount_crypt_stat *mount_crypt_stat; in ecryptfs_i_size_init() local
1220 mount_crypt_stat = in ecryptfs_i_size_init()
1221 &ecryptfs_superblock_to_private(inode->i_sb)->mount_crypt_stat; in ecryptfs_i_size_init()
1222 if (mount_crypt_stat->flags & ECRYPTFS_ENCRYPTED_VIEW_ENABLED) { in ecryptfs_i_size_init()
1254 crypt_stat->mount_crypt_stat = &ecryptfs_superblock_to_private( in ecryptfs_read_headers_virt()
1255 ecryptfs_dentry->d_sb)->mount_crypt_stat; in ecryptfs_read_headers_virt()
1363 struct ecryptfs_mount_crypt_stat *mount_crypt_stat = in ecryptfs_read_metadata() local
1365 ecryptfs_dentry->d_sb)->mount_crypt_stat; in ecryptfs_read_metadata()
1368 mount_crypt_stat); in ecryptfs_read_metadata()
1401 if (crypt_stat->mount_crypt_stat->flags in ecryptfs_read_metadata()
1433 struct ecryptfs_mount_crypt_stat *mount_crypt_stat) in ecryptfs_encrypt_filename() argument
1439 if (mount_crypt_stat && (mount_crypt_stat->flags in ecryptfs_encrypt_filename()
1447 mount_crypt_stat, NULL, in ecryptfs_encrypt_filename()
1466 mount_crypt_stat, in ecryptfs_encrypt_filename()
1867 struct ecryptfs_mount_crypt_stat *mount_crypt_stat, in ecryptfs_encrypt_and_encode_filename() argument
1875 if (mount_crypt_stat && (mount_crypt_stat->flags in ecryptfs_encrypt_and_encode_filename()
1886 rc = ecryptfs_encrypt_filename(filename, mount_crypt_stat); in ecryptfs_encrypt_and_encode_filename()
1897 if (mount_crypt_stat in ecryptfs_encrypt_and_encode_filename()
1898 && (mount_crypt_stat->flags in ecryptfs_encrypt_and_encode_filename()
1914 if (mount_crypt_stat in ecryptfs_encrypt_and_encode_filename()
1915 && (mount_crypt_stat->flags in ecryptfs_encrypt_and_encode_filename()
1979 struct ecryptfs_mount_crypt_stat *mount_crypt_stat = in ecryptfs_decode_and_decrypt_filename() local
1980 &ecryptfs_superblock_to_private(sb)->mount_crypt_stat; in ecryptfs_decode_and_decrypt_filename()
1986 if ((mount_crypt_stat->flags & ECRYPTFS_GLOBAL_ENCRYPT_FILENAMES) && in ecryptfs_decode_and_decrypt_filename()
1987 !(mount_crypt_stat->flags & ECRYPTFS_ENCRYPTED_VIEW_ENABLED)) { in ecryptfs_decode_and_decrypt_filename()
2016 mount_crypt_stat, in ecryptfs_decode_and_decrypt_filename()
2040 struct ecryptfs_mount_crypt_stat *mount_crypt_stat) in ecryptfs_set_f_namelen() argument
2047 if (!(mount_crypt_stat->flags & ECRYPTFS_GLOBAL_ENCRYPT_FILENAMES)) { in ecryptfs_set_f_namelen()
2053 mount_crypt_stat->global_default_fn_cipher_name); in ecryptfs_set_f_namelen()