Lines Matching defs:store_engine
76 typedef struct store_engine store_engine; typedef
91 struct store_engine { struct
92 pthread_mutex_t mutex; /* covers internal stacks and variables */
93 store_page *pages; /* directly addressable page list */
94 _store_wbuf *wbuf_stack; /* wbuf freelist */
95 obj_io *io_stack; /* IO's to use with submitting wbuf's */
96 store_io_thread *io_threads;
97 store_io_thread *bg_thread; /* dedicated thread for write submit / compact ops */
98 store_page **page_buckets; /* stack of pages currently allocated to each bucket */
99 store_page **free_page_buckets; /* stack of use-case isolated free pages */
100 size_t page_size;
101 unsigned int version; /* global version counter */
102 unsigned int last_io_thread; /* round robin the IO threads */
103 unsigned int io_threadcount; /* count of IO threads */
104 unsigned int page_count;
105 unsigned int page_free; /* unallocated pages */
106 unsigned int page_bucketcount; /* count of potential page buckets */
107 unsigned int free_page_bucketcount; /* count of free page buckets */
108 unsigned int io_depth; /* FIXME: Might cache into thr struct */
109 pthread_mutex_t stats_mutex;
110 struct extstore_stats stats;
111 struct store_maint maint;