Revert "android/lowmemorykiller: Account for total_swapcache_pages"
This reverts commit 3a610c281c
.
This commit is contained in:
parent
d7b96a1cf4
commit
bfd76409e1
|
@ -43,7 +43,6 @@
|
|||
#include <linux/mutex.h>
|
||||
#include <linux/delay.h>
|
||||
#include <linux/swap.h>
|
||||
#include <linux/fs.h>
|
||||
#include <linux/cpuset.h>
|
||||
#include <linux/show_mem_notifier.h>
|
||||
#include <linux/vmpressure.h>
|
||||
|
@ -396,14 +395,8 @@ static int lowmem_shrink(struct shrinker *s, struct shrink_control *sc)
|
|||
}
|
||||
|
||||
other_free = global_page_state(NR_FREE_PAGES) - totalreserve_pages;
|
||||
|
||||
if (global_page_state(NR_SHMEM) + total_swapcache_pages() <
|
||||
global_page_state(NR_FILE_PAGES))
|
||||
other_file = global_page_state(NR_FILE_PAGES) -
|
||||
global_page_state(NR_SHMEM) -
|
||||
total_swapcache_pages();
|
||||
else
|
||||
other_file = 0;
|
||||
other_file = global_page_state(NR_FILE_PAGES) -
|
||||
global_page_state(NR_SHMEM);
|
||||
|
||||
tune_lmk_param(&other_free, &other_file, sc);
|
||||
|
||||
|
|
Loading…
Reference in New Issue