summaryrefslogtreecommitdiffstats
path: root/xlators/storage/posix/src/posix-helpers.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/storage/posix/src/posix-helpers.c')
-rw-r--r--xlators/storage/posix/src/posix-helpers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/storage/posix/src/posix-helpers.c b/xlators/storage/posix/src/posix-helpers.c
index 43d76453021..688a60b4b28 100644
--- a/xlators/storage/posix/src/posix-helpers.c
+++ b/xlators/storage/posix/src/posix-helpers.c
@@ -1507,7 +1507,7 @@ __posix_janitor_timer_start(xlator_t *this)
timer->expires = priv->janitor_sleep_duration;
timer->function = posix_janitor_task_initator;
timer->data = this;
- gf_tw_add_timer(this->ctx->tw->timer_wheel, timer);
+ gf_tw_add_timer(glusterfs_ctx_tw_get(this->ctx), timer);
return;
}