summaryrefslogtreecommitdiffstats
path: root/xlators/performance/stat-prefetch/src/stat-prefetch.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/performance/stat-prefetch/src/stat-prefetch.c')
-rw-r--r--xlators/performance/stat-prefetch/src/stat-prefetch.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xlators/performance/stat-prefetch/src/stat-prefetch.c b/xlators/performance/stat-prefetch/src/stat-prefetch.c
index 7722c7bc8..ef2fc43b2 100644
--- a/xlators/performance/stat-prefetch/src/stat-prefetch.c
+++ b/xlators/performance/stat-prefetch/src/stat-prefetch.c
@@ -353,6 +353,7 @@ sp_cache_init (xlator_t *this)
}
LOCK_INIT (&cache->lock);
+ cache->this = this;
}
out:
@@ -383,7 +384,7 @@ sp_cache_remove_entry (sp_cache_t *cache, char *name, char remove_all)
goto out;
}
- this = THIS;
+ this = cache->this;
if (this == NULL)
goto out;