summaryrefslogtreecommitdiffstats
path: root/xlators/encryption/crypt/src
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/encryption/crypt/src')
-rw-r--r--xlators/encryption/crypt/src/atom.c2
-rw-r--r--xlators/encryption/crypt/src/crypt.c4
-rw-r--r--xlators/encryption/crypt/src/data.c6
-rw-r--r--xlators/encryption/crypt/src/metadata.c2
4 files changed, 7 insertions, 7 deletions
diff --git a/xlators/encryption/crypt/src/atom.c b/xlators/encryption/crypt/src/atom.c
index 6d7b351b370..fc90892fae8 100644
--- a/xlators/encryption/crypt/src/atom.c
+++ b/xlators/encryption/crypt/src/atom.c
@@ -612,7 +612,7 @@ void submit_full(call_frame_t *frame, xlator_t *this)
granularity = 1;
/*
* calculate start offset using cursor value;
- * here we should take into accout head block,
+ * here we should take into account head block,
* which corresponds to cursor value 0.
*/
off_in_file = atom->offset_at(frame, object) +
diff --git a/xlators/encryption/crypt/src/crypt.c b/xlators/encryption/crypt/src/crypt.c
index 72384a5595a..70087820211 100644
--- a/xlators/encryption/crypt/src/crypt.c
+++ b/xlators/encryption/crypt/src/crypt.c
@@ -1361,7 +1361,7 @@ int32_t end_writeback_ftruncate(call_frame_t *frame,
if (should_resume_submit_hole(local))
submit_hole(frame, this);
/*
- * case of hole, when we should't resume
+ * case of hole, when we shouldn't resume
*/
put_one_call:
put_one_call_ftruncate(frame, this);
@@ -3528,7 +3528,7 @@ static int32_t __crypt_writev_done(call_frame_t *frame,
if (local->xattr)
dict_unref(local->xattr);
/*
- * Calculate amout of butes to be returned
+ * Calculate amount of butes to be returned
* to user. We need to subtract paddings that
* have been written as a part of atom.
*/
diff --git a/xlators/encryption/crypt/src/data.c b/xlators/encryption/crypt/src/data.c
index 8b467bf2c60..82e29c0405a 100644
--- a/xlators/encryption/crypt/src/data.c
+++ b/xlators/encryption/crypt/src/data.c
@@ -68,7 +68,7 @@ static int32_t set_private_aes_xts(struct crypt_inode_info *info,
return ENOMEM;
/*
- * retrieve data keying meterial
+ * retrieve data keying material
*/
ret = get_data_file_key(info, master, object->o_dkey_size, data_key);
if (ret) {
@@ -547,7 +547,7 @@ int32_t set_config_avec_hole(xlator_t *this,
case GF_FOP_FTRUNCATE:
/*
* expanding truncate, hole goes after data,
- * and will be submited in any case.
+ * and will be submitted in any case.
*/
break;
default:
@@ -671,7 +671,7 @@ void set_config_offsets(call_frame_t *frame,
uint32_t nr_full_blocks;
int32_t size_full_blocks;
- uint32_t acount; /* number of alifned components to write.
+ uint32_t acount; /* number of aligned components to write.
* The same as number of occupied logical
* blocks (atoms)
*/
diff --git a/xlators/encryption/crypt/src/metadata.c b/xlators/encryption/crypt/src/metadata.c
index 1364f825a98..cd2bb7dda5d 100644
--- a/xlators/encryption/crypt/src/metadata.c
+++ b/xlators/encryption/crypt/src/metadata.c
@@ -558,7 +558,7 @@ static int32_t open_format_v1(unsigned char *wire,
/*
* perform metadata authentication against @loc->path;
- * extract crypt-specific attribtes and populate @info
+ * extract crypt-specific attribute and populate @info
* with them (optional)
*/
int32_t open_format(unsigned char *str,