summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/dht/src/tier.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/cluster/dht/src/tier.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/cluster/dht/src/tier.c')
-rw-r--r--xlators/cluster/dht/src/tier.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/xlators/cluster/dht/src/tier.c b/xlators/cluster/dht/src/tier.c
index 45a19d96243..fd57ddfaaab 100644
--- a/xlators/cluster/dht/src/tier.c
+++ b/xlators/cluster/dht/src/tier.c
@@ -564,7 +564,7 @@ tier_set_migrate_data (dict_t *migrate_data)
* promotions and demotions are multithreaded
* so the original frame from gf_defrag_start()
* is not carried. A new frame will be created when
- * we do syncop_setxattr(). This doesnot have the
+ * we do syncop_setxattr(). This does not have the
* frame->root->pid of the original frame. So we pass
* this dic key-value when we do syncop_setxattr() to do
* data migration and set the frame->root->pid to
@@ -964,7 +964,7 @@ tier_migrate_using_query_file (void *_args)
* per_file_status and per_link_status
* 0 : success
* -1 : failure
- * 1 : ignore the status and dont count for migration
+ * 1 : ignore the status and don't count for migration
* */
int per_file_status = 0;
int per_link_status = 0;
@@ -2444,7 +2444,7 @@ static void
while (1) {
/*
- * Check if a graph switch occured. If so, stop migration
+ * Check if a graph switch occurred. If so, stop migration
* thread. It will need to be restarted manually.
*/
any = THIS->ctx->active->first;
@@ -2489,8 +2489,8 @@ static void
/* To have proper synchronization amongst all
* brick holding nodes, so that promotion and demotions
- * start atomicly w.r.t promotion/demotion frequency
- * period, all nodes should have thier system time
+ * start atomically w.r.t promotion/demotion frequency
+ * period, all nodes should have their system time
* in-sync with each other either manually set or
* using a NTP server*/
ret = gettimeofday (&current_time, NULL);