Revert "lowmemorykiller: avoid false adaptive LMK triggers"
This reverts commit deafbd6437
.
This commit is contained in:
parent
688ad4c9cd
commit
46a47a6d0a
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue