Merge pull request #20020 from anitazha/oomd_with_mem

oomd: check that memory use also exceeds threshold before doing a swap kill
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2021-06-30 21:59:34 +02:00
committed by GitHub
8 changed files with 166 additions and 83 deletions
+2 -2
View File
@@ -35,8 +35,8 @@ int read_resource_pressure(const char *path, PressureType type, ResourcePressure
return -EINVAL;
r = fopen_unlocked(path, "re", &f);
if (r < 0)
return r;
if (r < 0)
return r;
for (;;) {
_cleanup_free_ char *l = NULL;