Lines Matching refs:list
154 struct vacuum_info *list = NULL;
294 if (!GREEDY_REALLOC(list, n_allocated, n_list + 1)) {
299 list[n_list].filename = p;
300 list[n_list].usage = size;
301 list[n_list].seqnum = seqnum;
302 list[n_list].realtime = realtime;
303 list[n_list].seqnum_id = seqnum_id;
304 list[n_list].have_seqnum = have_seqnum;
311 qsort_safe(list, n_list, sizeof(struct vacuum_info), vacuum_compare);
318 if ((max_retention_usec <= 0 || list[i].realtime >= retention_limit) &&
323 if (unlinkat(dirfd(d), list[i].filename, 0) >= 0) {
324 log_full(verbose ? LOG_INFO : LOG_DEBUG, "Deleted archived journal %s/%s (%s).", directory, list[i].filename, format_bytes(sbytes, sizeof(sbytes), list[i].usage));
325 freed += list[i].usage;
327 if (list[i].usage < sum)
328 sum -= list[i].usage;
333 log_warning_errno(errno, "Failed to delete archived journal %s/%s: %m", directory, list[i].filename);
336 if (oldest_usec && i < n_list && (*oldest_usec == 0 || list[i].realtime < *oldest_usec))
337 *oldest_usec = list[i].realtime;
343 free(list[i].filename);
344 free(list);