summaryrefslogtreecommitdiffstats
path: root/xlators/performance/stat-prefetch/src/stat-prefetch.h
diff options
context:
space:
mode:
authorRaghavendra G <raghavendra@gluster.com>2009-10-08 06:20:59 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-10-09 00:48:15 -0700
commitf5aa617d7cc4a48bb5e76fc7de763e9c3624e6b4 (patch)
tree866b32c6a894a8be4701c0d6672b78d7489fe79c /xlators/performance/stat-prefetch/src/stat-prefetch.h
parent59d4142ff1938e3b327fb81bee49402057ae1382 (diff)
performance/stat-prefetch: change the cache to use rbtree based hashtable instead of list for caching dentries.
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.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/xlators/performance/stat-prefetch/src/stat-prefetch.h b/xlators/performance/stat-prefetch/src/stat-prefetch.h
index c290ec3a9..20b5e4a6f 100644
--- a/xlators/performance/stat-prefetch/src/stat-prefetch.h
+++ b/xlators/performance/stat-prefetch/src/stat-prefetch.h
@@ -28,9 +28,11 @@
#include "glusterfs.h"
#include "dict.h"
#include "xlator.h"
+#include "rbthash.h"
+#include "hashfn.h"
struct sp_cache {
- gf_dirent_t entries; /* Head of list of cached dirents */
+ rbthash_table_t *table;
uint64_t expected_offset; /* Offset where the next read will
* happen.
*/