Lines Matching refs:cf
257 void *extstore_init(struct extstore_conf_file *fh, struct extstore_conf *cf, in extstore_init() argument
263 if (cf->page_size % cf->wbuf_size != 0) { in extstore_init()
268 if (cf->page_buckets > cf->wbuf_count) { in extstore_init()
272 if (cf->page_buckets < 1) { in extstore_init()
278 if (cf->page_size % (1024 * 1024 * 2) != 0 || in extstore_init()
279 cf->wbuf_size % (1024 * 1024 * 2) != 0) { in extstore_init()
290 e->page_size = cf->page_size; in extstore_init()
364 e->free_page_buckets = calloc(cf->page_buckets, sizeof(store_page *)); in extstore_init()
365 e->free_page_bucketcount = cf->page_buckets; in extstore_init()
384 e->page_buckets = calloc(cf->page_buckets, sizeof(store_page *)); in extstore_init()
385 e->page_bucketcount = cf->page_buckets; in extstore_init()
389 for (i = 0; i < cf->wbuf_count; i++) { in extstore_init()
390 _store_wbuf *w = wbuf_new(cf->wbuf_size); in extstore_init()
403 e->io_depth = cf->io_depth; in extstore_init()
406 e->io_threads = calloc(cf->io_threadcount, sizeof(store_io_thread)); in extstore_init()
407 for (i = 0; i < cf->io_threadcount; i++) { in extstore_init()
415 e->io_threadcount = cf->io_threadcount; in extstore_init()