diff --git a/drivers/staging/android/lowmemorykiller.c b/drivers/staging/android/lowmemorykiller.c index 6c03f4aadc31..6204905c2e2d 100644 --- a/drivers/staging/android/lowmemorykiller.c +++ b/drivers/staging/android/lowmemorykiller.c @@ -287,11 +287,11 @@ static int lowmem_shrink(struct shrinker *s, struct shrink_control *sc) return 0; } - other_free = global_page_state(NR_FREE_PAGES); + other_free = global_page_state(NR_FREE_PAGES) - totalreserve_pages; other_file = global_page_state(NR_FILE_PAGES) - global_page_state(NR_SHMEM) - global_page_state(NR_UNEVICTABLE) - - total_swapcache_pages; + total_swapcache_pages(); tune_lmk_param(&other_free, &other_file, sc);