Loading drivers/staging/android/lowmemorykiller.c +1 −2 Original line number Diff line number Diff line Loading @@ -37,7 +37,6 @@ #include <linux/mm.h> #include <linux/oom.h> #include <linux/sched.h> #include <linux/swap.h> #include <linux/rcupdate.h> #include <linux/notifier.h> #include <linux/mutex.h> Loading Loading @@ -281,7 +280,7 @@ static int lowmem_shrink(struct shrinker *s, struct shrink_control *sc) return 0; } other_free = global_page_state(NR_FREE_PAGES) - totalreserve_pages; other_free = global_page_state(NR_FREE_PAGES); if (global_page_state(NR_SHMEM) + total_swapcache_pages() < global_page_state(NR_FILE_PAGES)) Loading Loading
drivers/staging/android/lowmemorykiller.c +1 −2 Original line number Diff line number Diff line Loading @@ -37,7 +37,6 @@ #include <linux/mm.h> #include <linux/oom.h> #include <linux/sched.h> #include <linux/swap.h> #include <linux/rcupdate.h> #include <linux/notifier.h> #include <linux/mutex.h> Loading Loading @@ -281,7 +280,7 @@ static int lowmem_shrink(struct shrinker *s, struct shrink_control *sc) return 0; } other_free = global_page_state(NR_FREE_PAGES) - totalreserve_pages; other_free = global_page_state(NR_FREE_PAGES); if (global_page_state(NR_SHMEM) + total_swapcache_pages() < global_page_state(NR_FILE_PAGES)) Loading