summaryrefslogtreecommitdiffstats
path: root/xlators/features/changelog/src/changelog-helpers.c
diff options
context:
space:
mode:
authorYaniv Kaul <ykaul@redhat.com>2018-07-16 17:03:17 +0300
committerAmar Tumballi <amarts@redhat.com>2018-07-22 14:40:16 +0000
commit621138ce763eda8270d0a4f6d7209fd50ada8787 (patch)
tree7299759993f6e9f7f34dad95fc8d8cd6ffc1b2fd /xlators/features/changelog/src/changelog-helpers.c
parentc0e76377d0fc47aa66f35ea70a4793731ebbd40c (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/features/changelog/src/changelog-helpers.c')
-rw-r--r--xlators/features/changelog/src/changelog-helpers.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/xlators/features/changelog/src/changelog-helpers.c b/xlators/features/changelog/src/changelog-helpers.c
index 8bc994fa417..fb1ee06da2c 100644
--- a/xlators/features/changelog/src/changelog-helpers.c
+++ b/xlators/features/changelog/src/changelog-helpers.c
@@ -1172,7 +1172,7 @@ changelog_local_init (xlator_t *this, inode_t *inode,
/**
* We relax the presence of inode if @update_flag is true.
- * The caller (implmentation of the fop) needs to be careful to
+ * The caller (implementation of the fop) needs to be careful to
* not blindly use local->inode.
*/
if (!update_flag && !inode) {
@@ -1253,7 +1253,7 @@ changelog_drain_black_fops (xlator_t *this, changelog_priv_t *priv)
NULL);
while (priv->dm.black_fop_cnt > 0) {
gf_msg_debug (this->name, 0,
- "Condtional wait on black fops: %ld",
+ "Conditional wait on black fops: %ld",
priv->dm.black_fop_cnt);
priv->dm.drain_wait_black = _gf_true;
ret = pthread_cond_wait (&priv->dm.drain_black_cond,
@@ -1297,7 +1297,7 @@ changelog_drain_white_fops (xlator_t *this, changelog_priv_t *priv)
NULL);
while (priv->dm.white_fop_cnt > 0) {
gf_msg_debug (this->name, 0,
- "Condtional wait on white fops : %ld",
+ "Conditional wait on white fops : %ld",
priv->dm.white_fop_cnt);
priv->dm.drain_wait_white = _gf_true;
ret = pthread_cond_wait (&priv->dm.drain_white_cond,
@@ -1403,7 +1403,7 @@ changelog_rollover (void *data)
/* Adding delay of 1 second only during explicit rollover:
*
* Changelog rollover can happen either due to actual
- * or the explict rollover during snapshot. Actual
+ * or the explicit rollover during snapshot. Actual
* rollover is controlled by tuneable called 'rollover-time'.
* The minimum granularity for rollover-time is 1 second.
* Explicit rollover is asynchronous in nature and happens