summaryrefslogtreecommitdiffstats
path: root/xlators/features/marker
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/marker
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/marker')
-rw-r--r--xlators/features/marker/src/marker-quota.c4
-rw-r--r--xlators/features/marker/src/marker.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/xlators/features/marker/src/marker-quota.c b/xlators/features/marker/src/marker-quota.c
index b6bf2fb36a4..06ba0820a54 100644
--- a/xlators/features/marker/src/marker-quota.c
+++ b/xlators/features/marker/src/marker-quota.c
@@ -1325,7 +1325,7 @@ mq_reduce_parent_size_task (void *opaque)
locked = _gf_true;
if (contri.size >= 0) {
- /* contri paramater is supplied only for rename operation.
+ /* contri parameter is supplied only for rename operation.
* remove xattr is alreday performed, we need to skip
* removexattr for rename operation
*/
@@ -1554,7 +1554,7 @@ mq_initiate_quota_task (void *opaque)
Suppose hard link for a file f1 present in a directory d1 is
created in the directory d2 (as f2). Now, since d2's
contribution is not there in f1's inode ctx, d2's
- contribution xattr wont be created and will create problems
+ contribution xattr won't be created and will create problems
for quota operations.
Don't create contribution if parent has been changed after
diff --git a/xlators/features/marker/src/marker.c b/xlators/features/marker/src/marker.c
index 659ca890066..522fdfb86d1 100644
--- a/xlators/features/marker/src/marker.c
+++ b/xlators/features/marker/src/marker.c
@@ -1364,7 +1364,7 @@ marker_rename_unwind (call_frame_t *frame, void *cookie, xlator_t *this,
if (local->stub != NULL) {
/* Remove contribution node from in-memory even if
* remove-xattr has failed as the rename is already performed
- * if local->stub is set, which means rename was sucessful
+ * if local->stub is set, which means rename was successful
*/
(void) mq_inode_ctx_get (oplocal->loc.inode, this, &ctx);
if (ctx) {
@@ -1641,7 +1641,7 @@ err:
* b) we should subtract from src-parent exactly what we contributed to
* src-parent
* So, We hold a lock on src-parent to block any parallel transcations on
- * src-inode (since thats the one which survives rename).
+ * src-inode (since that's the one which survives rename).
*
* If there are any parallel transactions on dst-inode they keep succeeding
* till the association of dst-inode with dst-parent is broken because of an