summaryrefslogtreecommitdiffstats
path: root/xlators/performance/stat-prefetch/src/stat-prefetch.h
diff options
context:
space:
mode:
authorVijay Bellur <vijay@gluster.com>2009-11-26 13:36:34 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-11-26 11:29:58 -0800
commitff9944ff7910441a1f8b9784c153d5de5be62142 (patch)
tree18e8cb3bd4ab3007f99c05455aa714a90f9df4d7 /xlators/performance/stat-prefetch/src/stat-prefetch.h
parent03949adaf0c7fcfe10f31a802723613b357ec191 (diff)
performance/stat-prefetch: Changed rbthash to make use of 1 bucket
rbthash makes use of 1 bucket and a common mem-pool is being used for all rbt entries. 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.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/xlators/performance/stat-prefetch/src/stat-prefetch.h b/xlators/performance/stat-prefetch/src/stat-prefetch.h
index 6e329003e8a..51942acd960 100644
--- a/xlators/performance/stat-prefetch/src/stat-prefetch.h
+++ b/xlators/performance/stat-prefetch/src/stat-prefetch.h
@@ -78,6 +78,12 @@ struct sp_inode_ctx {
};
typedef struct sp_inode_ctx sp_inode_ctx_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);
#define SP_STACK_UNWIND(op, frame, params ...) do { \