Lines Matching refs:cf
1191 struct extstore_conf_file *cf = NULL; in storage_conf_parse() local
1200 cf = calloc(1, sizeof(struct extstore_conf_file)); in storage_conf_parse()
1201 cf->file = strdup(p); in storage_conf_parse()
1233 cf->page_count = multiplier / page_size; in storage_conf_parse()
1234 assert(page_size * cf->page_count <= multiplier); in storage_conf_parse()
1235 if (cf->page_count == 0) { in storage_conf_parse()
1246 cf->free_bucket = PAGE_BUCKET_COMPACT; in storage_conf_parse()
1248 cf->free_bucket = PAGE_BUCKET_LOWTTL; in storage_conf_parse()
1250 cf->free_bucket = PAGE_BUCKET_CHUNKED; in storage_conf_parse()
1252 cf->free_bucket = PAGE_BUCKET_DEFAULT; in storage_conf_parse()
1254 cf->free_bucket = PAGE_BUCKET_COLDCOMPACT; in storage_conf_parse()
1256 cf->free_bucket = PAGE_BUCKET_OLD; in storage_conf_parse()
1263 cf->free_bucket = PAGE_BUCKET_DEFAULT; in storage_conf_parse()
1266 return cf; in storage_conf_parse()
1268 if (cf) { in storage_conf_parse()
1269 if (cf->file) in storage_conf_parse()
1270 free(cf->file); in storage_conf_parse()
1271 free(cf); in storage_conf_parse()
1282 struct storage_settings *cf = calloc(1, sizeof(struct storage_settings)); in storage_init_config() local
1297 cf->ext_cf.page_size = settings.ext_page_size; in storage_init_config()
1298 cf->ext_cf.wbuf_size = settings.ext_wbuf_size; in storage_init_config()
1299 cf->ext_cf.io_threadcount = settings.ext_io_threadcount; in storage_init_config()
1300 cf->ext_cf.io_depth = 1; in storage_init_config()
1301 cf->ext_cf.page_buckets = PAGE_BUCKET_COUNT; in storage_init_config()
1302 cf->ext_cf.wbuf_count = cf->ext_cf.page_buckets; in storage_init_config()
1304 return cf; in storage_init_config()
1309 struct storage_settings *cf = conf; in storage_read_config() local
1310 struct extstore_conf *ext_cf = &cf->ext_cf; in storage_read_config()
1352 if (cf->storage_file) { in storage_read_config()
1498 if (cf->storage_file != NULL) { in storage_read_config()
1499 tmp->next = cf->storage_file; in storage_read_config()
1501 cf->storage_file = tmp; in storage_read_config()
1516 struct storage_settings *cf = conf; in storage_check_config() local
1517 struct extstore_conf *ext_cf = &cf->ext_cf; in storage_check_config()
1519 if (cf->storage_file) { in storage_check_config()
1538 struct storage_settings *cf = conf; in storage_init() local
1539 struct extstore_conf *ext_cf = &cf->ext_cf; in storage_init()
1545 settings.ext_compact_under = cf->storage_file->page_count * 0.01; in storage_init()
1546 settings.ext_drop_under = cf->storage_file->page_count * 0.01; in storage_init()
1557 storage = extstore_init(cf->storage_file, ext_cf, &eres); in storage_init()