Lines Matching refs:keep_free
69 static bool vacuum_necessary(int fd, uint64_t sum, uint64_t keep_free, uint64_t max_use) { in vacuum_necessary() argument
98 if (keep_free == UINT64_MAX) { in vacuum_necessary()
101 keep_free = PAGE_ALIGN((fs_size * 3) / 20); /* 15% */ in vacuum_necessary()
103 if (keep_free > DEFAULT_KEEP_FREE_UPPER) in vacuum_necessary()
104 keep_free = DEFAULT_KEEP_FREE_UPPER; in vacuum_necessary()
106 keep_free = DEFAULT_KEEP_FREE; in vacuum_necessary()
108 keep_free = PAGE_ALIGN(keep_free); in vacuum_necessary()
110 if (keep_free > 0 && fs_free < keep_free) in vacuum_necessary()
116 int coredump_vacuum(int exclude_fd, uint64_t keep_free, uint64_t max_use) { in coredump_vacuum() argument
121 if (keep_free == 0 && max_use == 0) in coredump_vacuum()
228 r = vacuum_necessary(dirfd(d), sum, keep_free, max_use); in coredump_vacuum()