Lines Matching defs:max_use
87 static bool vacuum_necessary(int fd, uint64_t sum, uint64_t keep_free, uint64_t max_use) {
98 if (max_use == (uint64_t) -1) {
101 max_use = PAGE_ALIGN(fs_size / 10); /* 10% */
103 if (max_use > DEFAULT_MAX_USE_UPPER)
104 max_use = DEFAULT_MAX_USE_UPPER;
106 if (max_use < DEFAULT_MAX_USE_LOWER)
107 max_use = DEFAULT_MAX_USE_LOWER;
109 max_use = DEFAULT_MAX_USE_LOWER;
111 max_use = PAGE_ALIGN(max_use);
113 if (max_use > 0 && sum > max_use)
134 int coredump_vacuum(int exclude_fd, uint64_t keep_free, uint64_t max_use) {
139 if (keep_free == 0 && max_use == 0)
250 r = vacuum_necessary(dirfd(d), sum, keep_free, max_use);