diff options
Diffstat (limited to 'xlators/performance/stat-prefetch/src/stat-prefetch.h')
-rw-r--r-- | xlators/performance/stat-prefetch/src/stat-prefetch.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/xlators/performance/stat-prefetch/src/stat-prefetch.h b/xlators/performance/stat-prefetch/src/stat-prefetch.h index dd6b067c5bd..81f504a7f31 100644 --- a/xlators/performance/stat-prefetch/src/stat-prefetch.h +++ b/xlators/performance/stat-prefetch/src/stat-prefetch.h @@ -25,11 +25,15 @@ #include "config.h" #endif +#include "locking.h" +#include "inode.h" #include "glusterfs.h" #include "dict.h" #include "xlator.h" #include "rbthash.h" #include "hashfn.h" +#include "call-stub.h" +#include <libgen.h> struct sp_cache { rbthash_table_t *table; @@ -58,9 +62,20 @@ typedef struct sp_fd_ctx sp_fd_ctx_t; struct sp_local { loc_t loc; fd_t *fd; + char is_lookup; }; typedef struct sp_local sp_local_t; +struct sp_inode_ctx { + char looked_up; + char lookup_in_progress; + int32_t op_ret; + int32_t op_errno; + struct stat stbuf; + gf_lock_t lock; + struct list_head waiting_ops; +}; +typedef struct sp_inode_ctx sp_inode_ctx_t; void sp_local_free (sp_local_t *local); |