diff options
author | Michael Halcrow <mhalcrow@us.ibm.com> | 2007-10-16 04:28:01 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-16 12:43:11 -0400 |
commit | fcd12835666b059b95613778819eb3ae9bc73642 (patch) | |
tree | bd825395368d5039e039f930288b3997a2a96263 /fs/ecryptfs | |
parent | af655dc6a9d5028d89aa35b65781631451aadc19 (diff) |
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>
Diffstat (limited to 'fs/ecryptfs')
-rw-r--r-- | fs/ecryptfs/crypto.c | 8 | ||||
-rw-r--r-- | fs/ecryptfs/ecryptfs_kernel.h | 6 | ||||
-rw-r--r-- | fs/ecryptfs/main.c | 4 | ||||
-rw-r--r-- | fs/ecryptfs/super.c | 4 |
4 files changed, 11 insertions, 11 deletions
diff --git a/fs/ecryptfs/crypto.c b/fs/ecryptfs/crypto.c index 76bba7384d51..6051dbfad0d3 100644 --- a/fs/ecryptfs/crypto.c +++ b/fs/ecryptfs/crypto.c | |||
@@ -213,12 +213,12 @@ ecryptfs_init_crypt_stat(struct ecryptfs_crypt_stat *crypt_stat) | |||
213 | } | 213 | } |
214 | 214 | ||
215 | /** | 215 | /** |
216 | * ecryptfs_destruct_crypt_stat | 216 | * ecryptfs_destroy_crypt_stat |
217 | * @crypt_stat: Pointer to the crypt_stat struct to initialize. | 217 | * @crypt_stat: Pointer to the crypt_stat struct to initialize. |
218 | * | 218 | * |
219 | * Releases all memory associated with a crypt_stat struct. | 219 | * Releases all memory associated with a crypt_stat struct. |
220 | */ | 220 | */ |
221 | void ecryptfs_destruct_crypt_stat(struct ecryptfs_crypt_stat *crypt_stat) | 221 | void ecryptfs_destroy_crypt_stat(struct ecryptfs_crypt_stat *crypt_stat) |
222 | { | 222 | { |
223 | struct ecryptfs_key_sig *key_sig, *key_sig_tmp; | 223 | struct ecryptfs_key_sig *key_sig, *key_sig_tmp; |
224 | 224 | ||
@@ -236,7 +236,7 @@ void ecryptfs_destruct_crypt_stat(struct ecryptfs_crypt_stat *crypt_stat) | |||
236 | memset(crypt_stat, 0, sizeof(struct ecryptfs_crypt_stat)); | 236 | memset(crypt_stat, 0, sizeof(struct ecryptfs_crypt_stat)); |
237 | } | 237 | } |
238 | 238 | ||
239 | void ecryptfs_destruct_mount_crypt_stat( | 239 | void ecryptfs_destroy_mount_crypt_stat( |
240 | struct ecryptfs_mount_crypt_stat *mount_crypt_stat) | 240 | struct ecryptfs_mount_crypt_stat *mount_crypt_stat) |
241 | { | 241 | { |
242 | struct ecryptfs_global_auth_tok *auth_tok, *auth_tok_tmp; | 242 | struct ecryptfs_global_auth_tok *auth_tok, *auth_tok_tmp; |
@@ -1880,7 +1880,7 @@ int ecryptfs_init_crypto(void) | |||
1880 | return 0; | 1880 | return 0; |
1881 | } | 1881 | } |
1882 | 1882 | ||
1883 | int ecryptfs_destruct_crypto(void) | 1883 | int ecryptfs_destroy_crypto(void) |
1884 | { | 1884 | { |
1885 | struct ecryptfs_key_tfm *key_tfm, *key_tfm_tmp; | 1885 | struct ecryptfs_key_tfm *key_tfm, *key_tfm_tmp; |
1886 | 1886 | ||
diff --git a/fs/ecryptfs/ecryptfs_kernel.h b/fs/ecryptfs/ecryptfs_kernel.h index 6ddab6c856ac..69f6a2289cdf 100644 --- a/fs/ecryptfs/ecryptfs_kernel.h +++ b/fs/ecryptfs/ecryptfs_kernel.h | |||
@@ -516,8 +516,8 @@ int virt_to_scatterlist(const void *addr, int size, struct scatterlist *sg, | |||
516 | int ecryptfs_compute_root_iv(struct ecryptfs_crypt_stat *crypt_stat); | 516 | int ecryptfs_compute_root_iv(struct ecryptfs_crypt_stat *crypt_stat); |
517 | void ecryptfs_rotate_iv(unsigned char *iv); | 517 | void ecryptfs_rotate_iv(unsigned char *iv); |
518 | void ecryptfs_init_crypt_stat(struct ecryptfs_crypt_stat *crypt_stat); | 518 | void ecryptfs_init_crypt_stat(struct ecryptfs_crypt_stat *crypt_stat); |
519 | void ecryptfs_destruct_crypt_stat(struct ecryptfs_crypt_stat *crypt_stat); | 519 | void ecryptfs_destroy_crypt_stat(struct ecryptfs_crypt_stat *crypt_stat); |
520 | void ecryptfs_destruct_mount_crypt_stat( | 520 | void ecryptfs_destroy_mount_crypt_stat( |
521 | struct ecryptfs_mount_crypt_stat *mount_crypt_stat); | 521 | struct ecryptfs_mount_crypt_stat *mount_crypt_stat); |
522 | int ecryptfs_init_crypt_ctx(struct ecryptfs_crypt_stat *crypt_stat); | 522 | int ecryptfs_init_crypt_ctx(struct ecryptfs_crypt_stat *crypt_stat); |
523 | int ecryptfs_crypto_api_algify_cipher_name(char **algified_name, | 523 | int ecryptfs_crypto_api_algify_cipher_name(char **algified_name, |
@@ -620,7 +620,7 @@ int | |||
620 | ecryptfs_add_new_key_tfm(struct ecryptfs_key_tfm **key_tfm, char *cipher_name, | 620 | ecryptfs_add_new_key_tfm(struct ecryptfs_key_tfm **key_tfm, char *cipher_name, |
621 | size_t key_size); | 621 | size_t key_size); |
622 | int ecryptfs_init_crypto(void); | 622 | int ecryptfs_init_crypto(void); |
623 | int ecryptfs_destruct_crypto(void); | 623 | int ecryptfs_destroy_crypto(void); |
624 | int ecryptfs_get_tfm_and_mutex_for_cipher_name(struct crypto_blkcipher **tfm, | 624 | int ecryptfs_get_tfm_and_mutex_for_cipher_name(struct crypto_blkcipher **tfm, |
625 | struct mutex **tfm_mutex, | 625 | struct mutex **tfm_mutex, |
626 | char *cipher_name); | 626 | char *cipher_name); |
diff --git a/fs/ecryptfs/main.c b/fs/ecryptfs/main.c index 71a9c4c36707..d4f00bbbcdc5 100644 --- a/fs/ecryptfs/main.c +++ b/fs/ecryptfs/main.c | |||
@@ -796,8 +796,8 @@ static void do_sysfs_unregistration(void) | |||
796 | { | 796 | { |
797 | int rc; | 797 | int rc; |
798 | 798 | ||
799 | if ((rc = ecryptfs_destruct_crypto())) { | 799 | if ((rc = ecryptfs_destroy_crypto())) { |
800 | printk(KERN_ERR "Failure whilst attempting to destruct crypto; " | 800 | printk(KERN_ERR "Failure whilst attempting to destroy crypto; " |
801 | "rc = [%d]\n", rc); | 801 | "rc = [%d]\n", rc); |
802 | } | 802 | } |
803 | sysfs_remove_file(&ecryptfs_subsys.kobj, | 803 | sysfs_remove_file(&ecryptfs_subsys.kobj, |
diff --git a/fs/ecryptfs/super.c b/fs/ecryptfs/super.c index 7b3f0cc09a6f..18d77f8aa7cd 100644 --- a/fs/ecryptfs/super.c +++ b/fs/ecryptfs/super.c | |||
@@ -73,7 +73,7 @@ static void ecryptfs_destroy_inode(struct inode *inode) | |||
73 | struct ecryptfs_inode_info *inode_info; | 73 | struct ecryptfs_inode_info *inode_info; |
74 | 74 | ||
75 | inode_info = ecryptfs_inode_to_private(inode); | 75 | 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); |
77 | kmem_cache_free(ecryptfs_inode_info_cache, inode_info); | 77 | kmem_cache_free(ecryptfs_inode_info_cache, inode_info); |
78 | } | 78 | } |
79 | 79 | ||
@@ -104,7 +104,7 @@ static void ecryptfs_put_super(struct super_block *sb) | |||
104 | { | 104 | { |
105 | struct ecryptfs_sb_info *sb_info = ecryptfs_superblock_to_private(sb); | 105 | struct ecryptfs_sb_info *sb_info = ecryptfs_superblock_to_private(sb); |
106 | 106 | ||
107 | ecryptfs_destruct_mount_crypt_stat(&sb_info->mount_crypt_stat); | 107 | ecryptfs_destroy_mount_crypt_stat(&sb_info->mount_crypt_stat); |
108 | kmem_cache_free(ecryptfs_sb_info_cache, sb_info); | 108 | kmem_cache_free(ecryptfs_sb_info_cache, sb_info); |
109 | ecryptfs_set_superblock_private(sb, NULL); | 109 | ecryptfs_set_superblock_private(sb, NULL); |
110 | } | 110 | } |