summaryrefslogtreecommitdiffstats
path: root/xlators/performance/stat-prefetch/src/stat-prefetch.h
diff options
context:
space:
mode:
authorVijay Bellur <vijay@gluster.com>2009-12-02 06:08:56 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-12-02 11:00:03 -0800
commit85b587f07c754bd2399fb227c6ea79509502d38c (patch)
treeac36ed833b51a3b22d0a574c434aa8cf730610d1 /xlators/performance/stat-prefetch/src/stat-prefetch.h
parent3f8320c34ad07ec93956ac0211fb2ef658893747 (diff)
Add support in rbthash to make use of user provided mempool.
Signed-off-by: Vijay Bellur <vijay@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 221 (stat prefetch implementation) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=221
Diffstat (limited to 'xlators/performance/stat-prefetch/src/stat-prefetch.h')
-rw-r--r--xlators/performance/stat-prefetch/src/stat-prefetch.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/xlators/performance/stat-prefetch/src/stat-prefetch.h b/xlators/performance/stat-prefetch/src/stat-prefetch.h
index 0e9353303..2a251e346 100644
--- a/xlators/performance/stat-prefetch/src/stat-prefetch.h
+++ b/xlators/performance/stat-prefetch/src/stat-prefetch.h
@@ -44,6 +44,7 @@ struct sp_cache {
unsigned long miss;
unsigned long hits;
uint32_t ref;
+ xlator_t *this;
};
typedef struct sp_cache sp_cache_t;
@@ -77,6 +78,12 @@ struct sp_local {
};
typedef struct sp_local sp_local_t;
+struct sp_private {
+ struct mem_pool *mem_pool;
+ gf_lock_t lock;
+};
+typedef struct sp_private sp_private_t;
+
void sp_local_free (sp_local_t *local);