Lines Matching refs:max_use
69 static bool vacuum_necessary(int fd, uint64_t sum, uint64_t keep_free, uint64_t max_use) { in vacuum_necessary() argument
80 if (max_use == UINT64_MAX) { in vacuum_necessary()
83 max_use = PAGE_ALIGN(fs_size / 10); /* 10% */ in vacuum_necessary()
85 if (max_use > DEFAULT_MAX_USE_UPPER) in vacuum_necessary()
86 max_use = DEFAULT_MAX_USE_UPPER; in vacuum_necessary()
88 if (max_use < DEFAULT_MAX_USE_LOWER) in vacuum_necessary()
89 max_use = DEFAULT_MAX_USE_LOWER; in vacuum_necessary()
91 max_use = DEFAULT_MAX_USE_LOWER; in vacuum_necessary()
93 max_use = PAGE_ALIGN(max_use); in vacuum_necessary()
95 if (max_use > 0 && sum > max_use) 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()