summaryrefslogtreecommitdiffstats
path: root/xlators/performance/stat-prefetch/src/stat-prefetch.h
diff options
context:
space:
mode:
authorRaghavendra G <raghavendra@gluster.com>2009-10-07 03:46:12 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-10-07 02:36:30 -0700
commitc77583a4ae5ecf716edb4b7c7834fc804ba36dad (patch)
tree4da8aab95a27c88bbc7e461a270bd3b4542b635a /xlators/performance/stat-prefetch/src/stat-prefetch.h
parenta9151c7c398f755abca20ec1055909f4ab4f3e0f (diff)
performance/stat-prefetch: Add accounting of cache hits and misses.
Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 284 (performance actually decreases for 'ls -l' on a directory containing large number of files with stat-prefetch loaded) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=284
Diffstat (limited to 'xlators/performance/stat-prefetch/src/stat-prefetch.h')
-rw-r--r--xlators/performance/stat-prefetch/src/stat-prefetch.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/xlators/performance/stat-prefetch/src/stat-prefetch.h b/xlators/performance/stat-prefetch/src/stat-prefetch.h
index c17f96f24..2c5878ff5 100644
--- a/xlators/performance/stat-prefetch/src/stat-prefetch.h
+++ b/xlators/performance/stat-prefetch/src/stat-prefetch.h
@@ -37,6 +37,8 @@ struct sp_cache {
* happen.
*/
gf_lock_t lock;
+ unsigned long miss;
+ unsigned long hits;
};
typedef struct sp_cache sp_cache_t;