Lines Matching defs:keep_free
87 static bool vacuum_necessary(int fd, uint64_t sum, uint64_t keep_free, uint64_t max_use) {
116 if (keep_free == (uint64_t) -1) {
119 keep_free = PAGE_ALIGN((fs_size * 3) / 20); /* 15% */
121 if (keep_free > DEFAULT_KEEP_FREE_UPPER)
122 keep_free = DEFAULT_KEEP_FREE_UPPER;
124 keep_free = DEFAULT_KEEP_FREE;
126 keep_free = PAGE_ALIGN(keep_free);
128 if (keep_free > 0 && fs_free < keep_free)
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);