diff options
author | Yaniv Kaul <ykaul@redhat.com> | 2018-07-16 17:03:17 +0300 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2018-07-22 14:40:16 +0000 |
commit | 621138ce763eda8270d0a4f6d7209fd50ada8787 (patch) | |
tree | 7299759993f6e9f7f34dad95fc8d8cd6ffc1b2fd /xlators/performance | |
parent | c0e76377d0fc47aa66f35ea70a4793731ebbd40c (diff) |
All: run codespell on the code and fix issues.
Please review, it's not always just the comments that were fixed.
I've had to revert of course all calls to creat() that were changed
to create() ...
Only compile-tested!
Change-Id: I7d02e82d9766e272a7fd9cc68e51901d69e5aab5
updates: bz#1193929
Signed-off-by: Yaniv Kaul <ykaul@redhat.com>
Diffstat (limited to 'xlators/performance')
-rw-r--r-- | xlators/performance/md-cache/src/md-cache.c | 4 | ||||
-rw-r--r-- | xlators/performance/nl-cache/src/nl-cache-helper.c | 8 | ||||
-rw-r--r-- | xlators/performance/nl-cache/src/nl-cache.h | 2 | ||||
-rw-r--r-- | xlators/performance/write-behind/src/write-behind.c | 6 |
4 files changed, 10 insertions, 10 deletions
diff --git a/xlators/performance/md-cache/src/md-cache.c b/xlators/performance/md-cache/src/md-cache.c index a3721a8e3f4..8cb30e1a2c3 100644 --- a/xlators/performance/md-cache/src/md-cache.c +++ b/xlators/performance/md-cache/src/md-cache.c @@ -312,7 +312,7 @@ __is_cache_valid (xlator_t *this, time_t mdc_time) /* conf->lock here is not taken deliberately, so that the multi * threaded IO doesn't contend on a global lock. While updating - * the variable, the lock is taken, so that atleast the writes are + * the variable, the lock is taken, so that at least the writes are * intact. The read of last_child_down may return junk, but that * is for a very short period of time. */ @@ -3694,7 +3694,7 @@ struct volume_options mdc_options[] = { .default_value = "", .op_version = {GD_OP_VERSION_4_0_0}, .flags = OPT_FLAG_SETTABLE | OPT_FLAG_CLIENT_OPT | OPT_FLAG_DOC, - .description = "A comma separeted list of xattrs that shall be " + .description = "A comma separated list of xattrs that shall be " "cached by md-cache. The only wildcard allowed is '*'", }, { .key = {"pass-through"}, diff --git a/xlators/performance/nl-cache/src/nl-cache-helper.c b/xlators/performance/nl-cache/src/nl-cache-helper.c index 67b17af8b69..b6b60a74918 100644 --- a/xlators/performance/nl-cache/src/nl-cache-helper.c +++ b/xlators/performance/nl-cache/src/nl-cache-helper.c @@ -23,14 +23,14 @@ * are sent before creating the file. Hence the negative entry cache. * It can exist even when the positive entry cache is invalid. It also * has the entries that were deleted from this directory. - * Freed on recieving upcall(with dentry change flag) or on expiring + * Freed on receiving upcall(with dentry change flag) or on expiring * timeout of the cache. * * - Positive entries: Populated as a part of readdirp, and as a part of * mkdir followed by creates inside that directory. Lookups and other * fops do not populate the positive entry (as it can grow long and is * of no value add) - * Freed on recieving upcall(with dentry change flag) or on expiring + * Freed on receiving upcall(with dentry change flag) or on expiring * timeout of the cache. * * Data structures to store cache? @@ -172,7 +172,7 @@ nlc_inode_ctx_set (xlator_t *this, inode_t *inode, nlc_ctx_t *nlc_ctx, int ret = -1; /* The caller may choose to set one of the ctxs, hence check - * if the ctx1/2 is non zero and then send the adress. If we + * if the ctx1/2 is non zero and then send the address. If we * blindly send the address of both the ctxs, it may reset the * ctx the caller had sent NULL(intended as leave untouched) for.*/ LOCK(&inode->lock); @@ -903,7 +903,7 @@ nlc_dir_add_ne (xlator_t *this, inode_t *inode, const char *name) LOCK (&nlc_ctx->lock); { - /* There is one possiblility where we need to search before + /* There is one possibility where we need to search before * adding NE: when there are two parallel lookups on a non * existent file */ if (!__nlc_search_ne (nlc_ctx, name)) { diff --git a/xlators/performance/nl-cache/src/nl-cache.h b/xlators/performance/nl-cache/src/nl-cache.h index 3bd7c83237a..afc3bec4a7f 100644 --- a/xlators/performance/nl-cache/src/nl-cache.h +++ b/xlators/performance/nl-cache/src/nl-cache.h @@ -105,7 +105,7 @@ struct nlc_statistics { gf_atomic_t getrealfilename_miss; gf_atomic_t pe_inode_cnt; gf_atomic_t ne_inode_cnt; - gf_atomic_t nlc_invals; /* No. of invalidates recieved from upcall*/ + gf_atomic_t nlc_invals; /* No. of invalidates received from upcall*/ }; struct nlc_conf { diff --git a/xlators/performance/write-behind/src/write-behind.c b/xlators/performance/write-behind/src/write-behind.c index 20767955e4e..bb07cb53c4b 100644 --- a/xlators/performance/write-behind/src/write-behind.c +++ b/xlators/performance/write-behind/src/write-behind.c @@ -107,7 +107,7 @@ typedef struct wb_inode { size_t size; /* Size of the file to catch write after EOF. */ gf_lock_t lock; xlator_t *this; - int dontsync; /* If positive, dont pick lies for + int dontsync; /* If positive, don't pick lies for * winding. This is needed to break infinite * recursion during invocation of * wb_process_queue from @@ -1354,7 +1354,7 @@ __wb_preprocess_winds (wb_inode_t *wb_inode) * as winding these lies again will trigger an infinite * recursion of wb_process_queue being called from a * failed fulfill. However, pick non-lied requests for - * winding so that application wont block indefinitely + * winding so that application won't block indefinitely * waiting for write result. */ @@ -1586,7 +1586,7 @@ __wb_pick_winds (wb_inode_t *wb_inode, list_head_t *tasks, } else { /* There is a conflicting liability which was * not attempted to sync even once. Wait till - * atleast one attempt to sync is made. + * at least one attempt to sync is made. */ } |