summaryrefslogtreecommitdiffstats
path: root/xlators/performance/stat-prefetch/src/stat-prefetch.h
diff options
context:
space:
mode:
authorRaghavendra G <raghavendra@gluster.com>2009-08-23 22:28:42 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-09-08 01:41:01 -0700
commit517c1997f5cb1ee7b62cc925f943b33e91e7b974 (patch)
tree01077d9ef5af6d33cc133dd8c2c5cba72f7eefe9 /xlators/performance/stat-prefetch/src/stat-prefetch.h
parentebc5d9888dfd7fcc000fac82dcfbad9fb91a9082 (diff)
performance/stat-prefetch: implement sp_readdir.
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.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/xlators/performance/stat-prefetch/src/stat-prefetch.h b/xlators/performance/stat-prefetch/src/stat-prefetch.h
index cf6bdd89d..4a45261a4 100644
--- a/xlators/performance/stat-prefetch/src/stat-prefetch.h
+++ b/xlators/performance/stat-prefetch/src/stat-prefetch.h
@@ -30,7 +30,7 @@
#include "xlator.h"
struct sp_cache {
- gf_dirent_t entries; /* Head of list of cached dirents. */
+ gf_dirent_t entries; /* Head of list of cached dirents */
uint64_t expected_offset; /* Offset where the next read will
* happen.
*/
@@ -39,7 +39,8 @@ struct sp_cache {
typedef struct sp_cache sp_cache_t;
struct sp_local {
- loc_t loc;
+ loc_t loc;
+ fd_t *fd;
};
typedef struct sp_local sp_local_t;