From f5aa617d7cc4a48bb5e76fc7de763e9c3624e6b4 Mon Sep 17 00:00:00 2001 From: Raghavendra G Date: Thu, 8 Oct 2009 06:20:59 +0000 Subject: performance/stat-prefetch: change the cache to use rbtree based hashtable instead of list for caching dentries. Signed-off-by: Anand V. Avati BUG: 221 (stat prefetch implementation) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=221 --- xlators/performance/stat-prefetch/src/stat-prefetch.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'xlators/performance/stat-prefetch/src/stat-prefetch.h') 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. */ -- cgit