Lines Matching refs:metrics
90 JournalMetrics *metrics,
106 assert(metrics);
156 metrics->min_use = MAX(metrics->min_use, sum);
159 avail = LESS_BY(ss_avail, metrics->keep_free);
161 s->cached_space_limit = MIN(MAX(sum + avail, metrics->min_use), metrics->max_use);
169 format_bytes(fb2, sizeof(fb2), metrics->max_use);
170 format_bytes(fb3, sizeof(fb3), metrics->keep_free);
182 "MAX_USE=%"PRIu64, metrics->max_use,
184 "DISK_KEEP_FREE=%"PRIu64, metrics->keep_free,
204 JournalMetrics *metrics;
211 metrics = &s->system_metrics;
215 metrics = &s->runtime_metrics;
219 return determine_space_for(s, metrics, path, name, verbose, patch_min_use, available, limit);
244 JournalMetrics *metrics,
254 r = journal_file_open_reliably(fname, flags, 0640, s->compress, seal, metrics, s->mmap, NULL, &f);
256 r = journal_file_open(fname, flags, 0640, s->compress, seal, metrics, s->mmap, NULL, &f);
398 JournalMetrics *metrics,
409 assert(metrics);
418 limit = metrics->max_use;
419 (void) determine_space_for(s, metrics, path, name, verbose, patch_min_use, NULL, &limit);
421 r = journal_directory_vacuum(p, limit, metrics->n_max_files, s->max_retention_usec, &s->oldest_file_usec, verbose);