Skip to content

Commit fcd1283

Browse files
Michael HalcrowLinus Torvalds
authored andcommitted
eCryptfs: grammatical fix (destruct to destroy)
Andrew Morton wrote: > > +int ecryptfs_destruct_crypto(void) > > ecryptfs_destroy_crypto would be more grammatically correct ;) Grammatical fix for some function names. Signed-off-by: Michael Halcrow <mhalcrow@us.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent af655dc commit fcd1283

4 files changed

Lines changed: 11 additions & 11 deletions

File tree

‎fs/ecryptfs/crypto.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -213,12 +213,12 @@ ecryptfs_init_crypt_stat(struct ecryptfs_crypt_stat *crypt_stat)
213213
}
214214

215215
/**
216-
* ecryptfs_destruct_crypt_stat
216+
* ecryptfs_destroy_crypt_stat
217217
* @crypt_stat: Pointer to the crypt_stat struct to initialize.
218218
*
219219
* Releases all memory associated with a crypt_stat struct.
220220
*/
221-
void ecryptfs_destruct_crypt_stat(struct ecryptfs_crypt_stat *crypt_stat)
221+
void ecryptfs_destroy_crypt_stat(struct ecryptfs_crypt_stat *crypt_stat)
222222
{
223223
struct ecryptfs_key_sig *key_sig, *key_sig_tmp;
224224

@@ -236,7 +236,7 @@ void ecryptfs_destruct_crypt_stat(struct ecryptfs_crypt_stat *crypt_stat)
236236
memset(crypt_stat, 0, sizeof(struct ecryptfs_crypt_stat));
237237
}
238238

239-
void ecryptfs_destruct_mount_crypt_stat(
239+
void ecryptfs_destroy_mount_crypt_stat(
240240
struct ecryptfs_mount_crypt_stat *mount_crypt_stat)
241241
{
242242
struct ecryptfs_global_auth_tok *auth_tok, *auth_tok_tmp;
@@ -1880,7 +1880,7 @@ int ecryptfs_init_crypto(void)
18801880
return 0;
18811881
}
18821882

1883-
int ecryptfs_destruct_crypto(void)
1883+
int ecryptfs_destroy_crypto(void)
18841884
{
18851885
struct ecryptfs_key_tfm *key_tfm, *key_tfm_tmp;
18861886

‎fs/ecryptfs/ecryptfs_kernel.h‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -516,8 +516,8 @@ int virt_to_scatterlist(const void *addr, int size, struct scatterlist *sg,
516516
int ecryptfs_compute_root_iv(struct ecryptfs_crypt_stat *crypt_stat);
517517
void ecryptfs_rotate_iv(unsigned char *iv);
518518
void ecryptfs_init_crypt_stat(struct ecryptfs_crypt_stat *crypt_stat);
519-
void ecryptfs_destruct_crypt_stat(struct ecryptfs_crypt_stat *crypt_stat);
520-
void ecryptfs_destruct_mount_crypt_stat(
519+
void ecryptfs_destroy_crypt_stat(struct ecryptfs_crypt_stat *crypt_stat);
520+
void ecryptfs_destroy_mount_crypt_stat(
521521
struct ecryptfs_mount_crypt_stat *mount_crypt_stat);
522522
int ecryptfs_init_crypt_ctx(struct ecryptfs_crypt_stat *crypt_stat);
523523
int ecryptfs_crypto_api_algify_cipher_name(char **algified_name,
@@ -620,7 +620,7 @@ int
620620
ecryptfs_add_new_key_tfm(struct ecryptfs_key_tfm **key_tfm, char *cipher_name,
621621
size_t key_size);
622622
int ecryptfs_init_crypto(void);
623-
int ecryptfs_destruct_crypto(void);
623+
int ecryptfs_destroy_crypto(void);
624624
int ecryptfs_get_tfm_and_mutex_for_cipher_name(struct crypto_blkcipher **tfm,
625625
struct mutex **tfm_mutex,
626626
char *cipher_name);

‎fs/ecryptfs/main.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -796,8 +796,8 @@ static void do_sysfs_unregistration(void)
796796
{
797797
int rc;
798798

799-
if ((rc = ecryptfs_destruct_crypto())) {
800-
printk(KERN_ERR "Failure whilst attempting to destruct crypto; "
799+
if ((rc = ecryptfs_destroy_crypto())) {
800+
printk(KERN_ERR "Failure whilst attempting to destroy crypto; "
801801
"rc = [%d]\n", rc);
802802
}
803803
sysfs_remove_file(&ecryptfs_subsys.kobj,

‎fs/ecryptfs/super.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ static void ecryptfs_destroy_inode(struct inode *inode)
7373
struct ecryptfs_inode_info *inode_info;
7474

7575
inode_info = ecryptfs_inode_to_private(inode);
76-
ecryptfs_destruct_crypt_stat(&inode_info->crypt_stat);
76+
ecryptfs_destroy_crypt_stat(&inode_info->crypt_stat);
7777
kmem_cache_free(ecryptfs_inode_info_cache, inode_info);
7878
}
7979

@@ -104,7 +104,7 @@ static void ecryptfs_put_super(struct super_block *sb)
104104
{
105105
struct ecryptfs_sb_info *sb_info = ecryptfs_superblock_to_private(sb);
106106

107-
ecryptfs_destruct_mount_crypt_stat(&sb_info->mount_crypt_stat);
107+
ecryptfs_destroy_mount_crypt_stat(&sb_info->mount_crypt_stat);
108108
kmem_cache_free(ecryptfs_sb_info_cache, sb_info);
109109
ecryptfs_set_superblock_private(sb, NULL);
110110
}

0 commit comments

Comments
 (0)