Revert "lowmemorykiller: avoid false adaptive LMK triggers"

This reverts commit deafbd6437.
This commit is contained in:
syphyr 2019-04-12 23:49:51 +02:00
parent 688ad4c9cd
commit 46a47a6d0a
1 changed files with 0 additions and 9 deletions

View File

@ -165,15 +165,6 @@ static int lmk_vmpressure_notifier(struct notifier_block *nb,
trace_almk_vmpressure(pressure, other_free,
other_file);
}
} else if (atomic_read(&shift_adj)) {
/*
* shift_adj would have been set by a previous invocation
* of notifier, which is not followed by a lowmem_shrink yet.
* Since vmpressure has improved, reset shift_adj to avoid
* false adaptive LMK trigger.
*/
trace_almk_vmpressure(pressure, other_free, other_file);
atomic_set(&shift_adj, 0);
}
return 0;